Is there a way to send HTML formatted mail using the smtp module
| Project: | Simplenews |
| Version: | HEAD |
| Component: | Usability |
| Category: | feature request |
| Priority: | normal |
| Assigned: | z.stolar |
| Status: | closed |
Mime mail isnt working and there seems that the people behind MIME dont even reply to serious issues like white screen of death in drupal 6. There is also no update for months.
Perhaps they have abandoned Mime mail module.
I think that you should try to find another solution for sending html mails. Personaly after getting the white screen of death (Drupal 6.8) i installed html mail module. This is also not a perfect one. Perhaps these teams should co-operate with you in order to have a solution that can finally work.
I posted this on Simplenews Template Issues but they consider that their module is based on yours to have mails sent.
The problem is common. If MIME mail gives white screen of death, then only simple mails can be sent to users, which is not what we would like from such a nice module.

#1
I agree that the current situation is not ideal. But since this is open source you can take the existing code fix the problems or rewrite the whole thing the way you like it. If you can't code you can hire a developer to do it for you. Asking others to fix your problem for free is worth a try but may not prove very succesfull. If you have funds I'm sure I can help you but maintaining simplenews is already a big community contribution. Adding Mime mail to it is way beyond my limits. It's time for others to contribute.
#2
As an interim measure could HTML Mail be used instead? Or even have the option of choosing between Mime-Mail and HTML Mail. Simplenews doesn't recognise that HTML Mail is installed at the moment.
#3
@Brico: can you supply a patch for this?
#4
From a look at the code of HTML Mail module, it will work without any code. Just select plain text as format in your simplenews newsletter and enable and setup the HTML Mail module.
Marking the issue as won't fix since the is nothing more Simplenews can do about this.
#5
Not exact.
The plain text / rich text selection appears only if mime mail is installed. I'll try to create a patch today for html mail.
#6
Attached a patch to add htmlmail support to simplenews.
Without it, simplenews turn HTML to text before htmlmail gets into action.
#7
you have swapped old and new file.
I changed version because I intent to put this into HEAD and not into the upcoming 1.0 release.
#8
Is this a patch for MimeMail or the HTML to Text module?
If it is an option to use either module, which one are you using?
If it's for MimeMail, all I found for Drupal-6 was the MimeMail dev6 version. Is it safe to use the dev version on a live site?
I know that I ask a lot of questions. It's just that I completely destroyed our group's web site while trying to fix email errors for the various mail modules. I want to get it right this time.
Ashford
#9
This patch is for simplenews, and is meant to add support for the htmlmail module, not the ones you've mentioned.
It will add a select drop down, to choose between html and plain text for outgoing mails.
You should verify the readiness of mimemail in the relevant project's issue queue.
#10
Attached patch is committed to HEAD. z.stolar, thanks.
#11
Automatically closed -- issue fixed for 2 weeks with no activity.
#12
The current dev (6.x-1.x-dev (2009-Mai-16)) still shows the text
"Install Mime Mail to send HTML emails or emails with attachments (both plain text and HTML)."
unter /admin/settings/simplenews/newsletter
maybe this could be improved?
#13
Is http://drupal.org/node/534704 relevant?
#14
Is there a way to send HTML formatted mail using the smtp module
to use an external mail server
Probe 6.x-1.x-dev and 6.x-1.0-rc6 witch htmlmail but send formatted simple text,
Enable mimail but it´s try to use the local mail server .-
Sorry my inglis.-
#15
Sorry applied the patch to the module simplenews and
htmlmail enable
mimemail disable
configure (admin/settings/simplenews/newsletter) html format -
and it works fine sending html formatted mail using the smtp module
Works well thank you very much
#16
Just restoring the issue title :)
#17
@doknet Please don't hijack issues. Select an issue carefully if you consider adding your problem to it, or better search the site and issue queues of related modules. In your case try the HTML module issue queue. It is a known issue.
#18
subscribing
#19
Hi all,
I'm not clear how to install the patch listed in above post. (newbee)
Where does this file get placed? In the HEAD of what?
I have seen other post say that the beta version of mimemail works... anyone else using the beta in production?
#20
nvisioncurtis : Please try googling for basic answers: http://drupal.org/patch
#21
Ah!
I didn't know about this. Thanks!
It works yeah!
#22
My images are arriving in my mail with relative links and so don't show as broken links... inserted Images of course need to be absolute URLs for email. :(
I can't determine if this is a glitch or setting issue? Any ideas?
#23
Tested the patch as working. Thanks.
@nvisioncurtis I am using wysiwyg api in junktion with tinymce and imce and have no problems. However there might be a setting to choose weather images are inserted with relative or absolute paths.
#24
Thanks,
I agree, I don't think this is a patch issue as I am having the issue whenI send page using the printer friendly module.
I've looked around and I don't see where the setting could be...
#25
I used the absolute source module to fix the relative links issue I was having.
drupal.org/project/abssrc
Never saw anything anywhere that suggested this was required. Perhaps its needed only for htmlmail module but not the mimemail module?
#26
Closing the issue. The original request is fixed in HEAD and now also backported to 6.x-1.x-dev. For bugs, please create a new issue.
#27
Automatically closed -- issue fixed for 2 weeks with no activity.
#28
I confirm patch on comment 10 (http://drupal.org/comment/reply/367488#comment-1361820)
I'm using simplenews rc4, htmlmail dev (with emogrifier activated) and smtp
#29
Please check out this thread which helped me getting Simplenews and Mime Mail working together: http://drupal.org/node/562466
It's just a matter of disabling and re-enabling modules.