G Pas
This commit is contained in:
parent
7eedf221d5
commit
ac3b87a701
1 changed files with 1 additions and 0 deletions
1
gpas.go
1
gpas.go
|
@ -63,6 +63,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
// auth = sasl.NewPlainClient("", config.SMTPUsername, config.SMTPPassword)
|
// auth = sasl.NewPlainClient("", config.SMTPUsername, config.SMTPPassword)
|
||||||
// }
|
// }
|
||||||
auth := smtp.PlainAuth("", config.SMTPUsername, config.SMTPPassword, config.SMTPServer)
|
auth := smtp.PlainAuth("", config.SMTPUsername, config.SMTPPassword, config.SMTPServer)
|
||||||
|
log.Printf("auth: %v", auth)
|
||||||
err = smtp.SendMail(config.SMTPServer+":587", auth, config.SMTPUsername, []string{user.OtherMailbox}, message)
|
err = smtp.SendMail(config.SMTPServer+":587", auth, config.SMTPUsername, []string{user.OtherMailbox}, message)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue