Merge pull request #8591 from colinux/fix-dolist-api-wo-recipients
fix(dolist): n'envoie pas de mail par Dolist API s'il contient des destinataires cachés
This commit is contained in:
commit
b109f206ee
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ class Dolist::API
|
|||
end
|
||||
|
||||
def sendable?(mail)
|
||||
return false if mail.to.blank? # recipient are mandatory
|
||||
return false if mail.bcc.present? # no bcc support
|
||||
|
||||
# Mail having attachments are not yet supported in our account
|
||||
mail.attachments.none? { !_1.inline? }
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue