fix: notify of unencrypted recipient

This commit is contained in:
James Houlahan
2020-09-11 10:41:21 +02:00
parent 9261b6337e
commit dd2264da6f

View File

@ -290,6 +290,9 @@ func (su *smtpUser) Send(from string, to []string, messageReader io.Reader) (err
}
sendPreferences, err := su.getSendPreferences(email, message.MIMEType, mailSettings)
if !sendPreferences.Encrypt {
containsUnencryptedRecipients = true
}
if err != nil {
return err
}