I'm getting a Gad Gateway error when trying to send mail with this module enabled.

using modules:
htmlmail
mailsystem

if mailmime is disabled, emails are sent fine. With it enabled i get a 502 bad gateway error.

I'm using php 5.6 and all the module requirements are met.

any suggestions?
thanks.

Comments

loze created an issue. See original summary.

loze’s picture

I just noticed, I'm also getting the flowing errors in my log with this enabled,

Strict warning: Declaration of MailMIME::addAttachment() should be compatible with Mail_mime::addAttachment($file, $c_type = 'applicatio...', $name = '', $isfile = true, $encoding = 'base64', $disposition = 'attachment', $charset = '', $language = '', $location = '', $n_encoding = NULL, $f_encoding = NULL, $description = '', $h_charset = NULL, $add_headers = Array) in _registry_check_code() (line 3494 of /var/www/html/includes/bootstrap.inc).

and

Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in MailMIME::toHeaders() (line 794 of /var/www/html/sites/all/modules/contrib/mailmime/mailmime.inc).

loze’s picture

I switched to the dev version of the module, and the 502 error is gone.

my bad.

loze’s picture

Status: Active » Closed (won't fix)