My site is using Messaging with Simple Mail, Notifications and Mail2Web. All was working perfectly until a couple of days ago. I decided to install PHPMailer so that I could use HTML Mail. I installed it (including class.phpmailer downloaded separately) and started to test it. Several more messages were sent out, but they all remained stubbornly in plain text. I tried changing various settings and soon realised that no messages were going out any more.
To cut a long story short, I have spent 10 to 15 hours trying to get outgoing Mail going again but to no avail. I have disabled Messaging and Notifications and Mail2Web, deleted the modules from my server, downloaded new versions and uploaded them to my server but without PHPMailer. It still won't work.
My system Messages are still sent out so Drupal Mail has broken completely. The messages that should be sent out still appear in the database in the messaging-store table but there is a zero in the sent column.
Any hints of where to look or what to do would be very much appreciated. My site is broken and I just cannot find out why.
Comments
Comment #1
jose reyero commentedAny chance you have enabled 'Debug mode'? (messages won't be sent out, just stored)
Also, check your watchdog logs for any warnings.
About the phpmailer module, for it to sent out html you need to set an html filter for it, not a plain text one (messaging settings)
Comment #2
davidteall commentedI did try debug mode for a while quite a long time after the problem first arose in the hope that it would lead me to a solution. I couldn't fine the messages anywhere so I disabled it again. It is not enabled now.
Watchdog records the fact that a new message has been added but does not give any warning about Mail failing. On the first three occasions when Mail failed I got the message "Message could not be delivered for method mail" but that has not appeared since.
When I was attempting to use phpmailer I changed the filter settings to HTML. It was somewhere around that time that the problem started.
Thanks for your interest.
Comment #3
davidteall commentedProblem solved
I did a trawl through the variables table in the database and found three entries I knew I did not need now I have gone back to using plain-text emails: two relating to HTML Mail and one relating to debug mode. I deleted all three and everything is working correctly again. If I had been cleverer I would have deleted them one at a time and would now be able to tell you which one was creating the problem. Oh well - next time!
Comment #4
MedicSean37 commentedIf you remember what those variables were, let me know. I have the same problem. I deleted 3 variables that had anything to do with phpmailer and html/debug. But it didn't fix my problem.
I get this error in my logs: Message could not be delivered for method debug.
Debug is off.
Comment #5
davidteall commentedI can't remember what they were called, only that two had HTML mail in the name and one had debug in the name. Have you now disabled debug? It sounds as if it might still be functioning.
Comment #6
MedicSean37 commentedYeah, I've completely uninstalled debug. I really wish phpmailer would work for all my users not just admin. It formats very well in the admin emals.
Comment #7
ckreutz commentedSubscribe
Same problem for me. Using drupal 5.11 and latest modules. Mime mail works fine, but HTML mail does not work any more. I also tried to erase variables with little luck. The messages is created but not sent.
Comment #8
jose reyero commentedThere was some trouble with the messaging_debug variable, which was the one causing the original issue, that one is fixed.
Reopen if still happens. However, if it just fails with some sending method (phpmailer), please open a different one.
Comment #9
himtuna commentedHad to disable notification and messaging module because not even a single email was sent through site.
Using google apps smtp server. Quite reliable, now I have disabled the messages are sent within no time.
Any problem pls explain., i dont want to disable the module.