check for smtp AUTH extension

此提交包含在:
mcheng89
2014-10-31 21:52:03 -04:00
父節點 87be4623cf
當前提交 b9881d1e7b
+1 -1
查看文件
@@ -82,7 +82,7 @@ func sendMail(hostAddressWithPort string, auth smtp.Auth, from string, recipient
return err
}
if auth != nil {
if ok, _ := client.Extension("AUTH"); ok && auth != nil {
if err = client.Auth(auth); err != nil {
return err
}