Sending email using EmailMultiAlternatives where from_email contains comma

42 views
Skip to first unread message

Erol Merdanović

unread,
Apr 21, 2014, 1:20:07 PM4/21/14
to django...@googlegroups.com
Hi all

I'm using EmailMultiAlternatives to send email. I defined from_email as

Mike <mi...@example.com

and it works great. But, if I try to send with

Mike, CEO <mi...@example.com>

I get an error that Mike is not valid email. How to correctly send email which contains comma in sender?

Russell Keith-Magee

unread,
Apr 21, 2014, 9:45:27 PM4/21/14
to Django Users
Hi Erol,

Have you tried putting quotes around the name? 

"Mike, CEO" <mi...@example.com>

In my testing, that works, and would be consistent with RFC2822 name parsing, AFAIK.

Yours,
Russ Magee %-)

Chen Xu

unread,
Aug 19, 2014, 4:15:32 PM8/19/14
to django...@googlegroups.com
If I create a user for no-reply, is there a way to make the reply "Delivery Failure" if people try to ?



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJxq84-r%3DMhN_kymMLsVpKRh7boq0SYobS1v7%3Dw0G5Zbp8zpLA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
⚡ Chen Xu
Reply all
Reply to author
Forward
0 new messages