forked from Silverfish/proton-bridge
fix: notify of unencrypted recipient
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user