Hi there. I have just enabled the Mime Mail module to use with Simplenews, Send, etc., and after I went to the admin settings page for Mime Mail and selected sending HTML emails, the screen has gone blank. Nothing will display now on my site. I have had to delete mimemail from my modules directory just to get my page to display. As soon as I copy the mimemail module back into my modules directory, the screen goes blank again.

Am I supposed to have something special enabled on my server to enable this module?

Thanks. I need to take this site live very soon, so any response and help is appreciated.

Comments

allie micka’s picture

Status: Active » Closed (duplicate)

Check your error logs. My guess is that you have the SMTP module, or a similar mail-handling module installed, and you are getting a "cannot redefine function drupal_mail_wrapper()" error.

Have a look at the SMTP module's issue queue, or re-open this issue if that's not it.

bobwaycott’s picture

Allie, Thanks for the reply. I wish your suggestion was the resolution. I run my own mailserver, so I do not have any SMTP-related modules installed. Regarding Mail, the modules I have installed on my site are Invite, Notify, Send, Simplenews, Privatemsg, Comment Mail, and Subscriptions, as well as quite a few other modules that are not strictly mail-related. Some of these include CiviCRM, phpBB, various modules related to the look and feel of certain elements of the site, etc.

Again, I run my own mailserver, and mail has so far sent out fine during site development and testing for registrations. I had Mime Mail activated for days until yesterday when I chose to have it send HTML styled mail. After saving the configuration, the screen blanked. I have since disabled Send, Simplenews, and Subscriptions, especially as Send & Simplenews are dependent upon Mime Mail.

Any second thoughts?

bobwaycott’s picture

To clarify, I enabled sending all mail through mimemail, but did not enable all email being sent as plaintext (hence my comment about enabling HTML-styled email). Just wanted to make that clear. Thanks.

bobwaycott’s picture

Priority: Normal » Critical

The issue still stands.

I checked with another site I run and under admin/settings/mimemail, it does not have the 'Use Mime Mail for all messages' enabled. That is what I enabled on the current site to have styling, and now the site goes blank unless I delete the mimemail module from my modules folder.

Any thoughts on what is going on here? Can I edit the database itself and disable that option to get the site back and be able to use Send and other modules that depend on mimemail?

bobwaycott’s picture

Status: Closed (duplicate) » Active
bobwaycott’s picture

It might be best not to file something as a duplicate and thus get it ignored before getting information.

I do not have SMTP module enabled. The issue still stands. I have compared database entries between two sites. The first one works and does not have 'Use Mime Mail for all messages' enabled; the second (the one with the problem) does have that option enabled and it causes the site to blank out. In the database, in the variable table, the site that has the problem does not show the 'mail engine' field, whereas the site without problems does. It seems (as best I can deduce) that that field disappeared when I enabled mime mail for all messages. I have tried inserting that value into the variable table, but mysql tells me it is already there. The problem is that 'mail engine - mimemail' doesn't show up at all in that table on the problem site. Because the only way I can seem to get my site back is by deleting mimemail from the /modules directory, I can't disable the configuration option.

Is this clear enough? I'm not sure how to explain things better than that.

allie micka’s picture

Again, check your error logs.

A white screen means that PHP has experienced a fatal error (requiring a nonexistent file, parse error, duplicate function name, etc.) It also means that you have turned the display_errors option off in your php.ini file. While it's generally a good idea to do this, it makes things tough to troubleshoot. Fortunately, you can look at your httpd error logs to see what's up.

So, please do that, and let us know what's up :)

Thanks!

bobwaycott’s picture

Okay thanks. I enable display_errors and the conflict seems to be with the Returnpath module. I enabled Returnpath cos my server's mail is being sent to spam boxes in Gmail, etc.

Here's the error reported:

Fatal error: Cannot redeclare drupal_mail_wrapper() (previously declared in /path/to/site.com/publichtml/modules/mimemail/mimemail.module:259) in /path/to/site.com/publichtml/modules/returnpath/returnpath.module on line 37

So, must I disable Returnpath, or is there a way (preferably) for them to coexist?

Bob

wylbur’s picture

Allie,

I am using mime mail, and need to set the return path because I am not getting server emails back when there are erroneous email addresses. It looks like the two modules are not compatible. Is there another solution?

Thanks!

Wilbur

allie micka’s picture

Status: Active » Closed (duplicate)

This is still a duplicate. Please see the information at:

http://drupal.org/node/111690
http://drupal.org/node/132903

emdalton’s picture

More like this:

http://drupal.org/node/107170

Just in case anyone else is still seeing this conflict (we are).