Commits

Raimon Esteve (Zikzakmedia) committed 4598996

Validate emails when send

Comments (0)

Files changed (1)

 
         """Validate recipients to send or move email to draft mailbox"""
         emails = ",".join(recepients)
-        if not ElectronicMail.validate(emails) and template:
+        if not ElectronicMail.validate_emails(emails.split(',')) and template:
             """Draft Mailbox. Not send email"""
             ElectronicMail.write([email], {
                 'mailbox': template.draft_mailbox,