Append Multiple Recipient Email And Name Into Emailmultialternatives
Hi I have a form mixin which the user inputs a message and sends it to multiple recipients. I am using Mandrill as my email client. I am currently able to send the email to a singl
Solution 1:
EmailMultiAlternatives takes a list of email addresses for the "to" parameter, so a simple approach could be to change:
msg = EmailMultiAlternatives(subject, message, email, [remail])
to:
msg = EmailMultiAlternatives(subject, message, email, remail.split(','))
which will break apart the text of the remail field into a list, at each comma.
Post a Comment for "Append Multiple Recipient Email And Name Into Emailmultialternatives"