Add reply to address to django EmailMultiAlternatives

django, python

Solution

To add `Reply-To` in `EmailMultiAlternatives` you have to do it in the same way you do so with `EmailMessage`.

As you can see in django's source code EmailMultiAlternatives inherits from EmailMessage so they take the same parameters in the init constructor.

So to add `Reply-To`:

msg = EmailMultiAlternatives(headers={'Reply-To': "another@example.com"})

UPDATE 01/01/2015

As of Django 1.8, you can do it as follows:

msg = EmailMultiAlternatives(reply_to=["another@example.com"])

Problem

I am trying to add a "reply to" email while using django's EmailMultiAlternatives format. The documentation demonstrates who to do it with EmailMessage class but doesn't show how to do it when using EmailMultiAlternatives. https://docs.djangoproject.com/en/dev/topics/email/?from=olddocs#sending-alternative-content-types Thanks for the feedback.

Original source