brack3t / Djrill

[INACTIVE/UNMAINTAINED] Djrill is an email backend and new message class for Django users that want to take advantage of the Mandrill transactional email service from MailChimp.
BSD 3-Clause "New" or "Revised" License
319 stars 64 forks source link

Extra headers #58

Closed PaoloC68 closed 10 years ago

PaoloC68 commented 10 years ago

As stated in your documentation about headers:

Headers

Djrill accepts additional headers, but only Reply-To and X- (since that is all that Mandrill accepts). Any other extra headers will raise NotSupportedByMandrillError when you attempt to send the message.

But looking at the mandrill documentation here it looks that most of the headers are accepted:

headers struct optional extra headers to add to the message (most headers are allowed)

Maybe they changed this and Djrill should be actualized? I have been sending off emails using this headers with no problems for example:

    message.extra_headers['Message-ID'] = make_msgid()
    message.extra_headers['Date'] = formatdate()
    message.extra_headers['In-Reply-To'] = self.message_id
    message.extra_headers['References'] = self.message_id
medmunds commented 10 years ago

Looks like Mandrill relaxed their header requirements. (They used to silently fail the send with other headers, which is why Djrill enforced the restrictions locally.)

Thanks for pointing this out. I'll remove the restriction.