First, thanks you very much for this module :)

I am using the Mime mail module in my project because it allows me to use HTML tags in D7.

I added some HTML tags to the email notification template and the mail server rejected the email because it has a duplicate 'MIME-Version' declaration (for information, i am using amazon SES for sending emails).

I noticed that in answers.notify.inc, there is the Mime version.

Anyway, I found a quick workaround:

In answers.notify.inc at line 115, replace

$message['headers']['Mime-Version'] = '1.0';

by

if (!module_exists('mimemail')){
		$message['headers']['Mime-Version'] = '1.0';
	}

It surely not the cleanest way, but for me it works. Maybe there is a better way to avoid duplication MIME Version.

Comments

chipcleary’s picture

Version: 7.x-3.0 » 6.x-2.x-dev
Status: Active » Patch (to be ported)

Thanks for identifying this. I am not sure whether there is a better way ... but this way does seem harmless.

I have committed to 7x.-3.x. To be ported.

chipcleary’s picture

Status: Patch (to be ported) » Fixed

Now committed to 6.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.