Just a note to maybe add something to the documentation to indicate that htmlmail does not function as expected when sending test mails while Drupal is in maintenance mode.

After a lot of frustration, especially with all the changes from D6 and trying to implement simplenews, I finally discovered why test simplenews mails were just coming through as plain text. Turn your site back 'on' and everything works.

also big thanks for all the recent work, htmlmail has really taken off.

Comments

pillarsdotnet’s picture

Assigned: Unassigned » pillarsdotnet

Will look into...

pillarsdotnet’s picture

Well, the "echo" module doesn't work while in maintenance mode, because it themes text as the anonymous user.

Dunno just how to get around that...

pillarsdotnet’s picture

Title: htmlmail tests unreliable when Drupal is in maintenance mode » Must turn off maintenance_mode to use echo module.
Component: Documentation » Module compatibility
Category: task » bug
Status: Active » Needs work

Fixed; will roll a new release momentarily...

pillarsdotnet’s picture

Status: Needs work » Fixed

Fixed in 7.x-2.41 release.

I modified the mail sending code to briefly turn off maintenance_mode while calling echo_themed_page().

I still need to add docs to Echo module accordingly.

Thank you for your report. I never would have thought to try sending mail from maintenance mode.

pillarsdotnet’s picture

Version: 7.x-2.40 » 7.x-2.41
pillarsdotnet’s picture

Also fixed in Echo 7.x-1.6. When usage stats show that most people have switched to that release or later, I'll probably remove the workaround code from HTML Mail.

blasthaus’s picture

Wow that was fast, thanks! i noticed later that turning off echo made everything work for me as i'm not using it. In fact, with respect to simplenews, I'd like the ability not to have echo doing it's magic. Once again, hats off for all the work on this module. I'm lovin it. I'll probably put in a few feature requests as well. hope you don't mind!

Status: Fixed » Closed (fixed)

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

pillarsdotnet’s picture

Project: HTML Mail » Echo
Version: 7.x-2.41 » 7.x-1.6
Component: Module compatibility » Code

Filing under Echo, which is where the fix actually happened.