Is there a way to send HTML formatted mail using the smtp module

agrigor1 - February 1, 2009 - 13:31
Project:Simplenews
Version:HEAD
Component:Usability
Category:feature request
Priority:normal
Assigned:z.stolar
Status:closed
Description

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

Sutharsan - February 1, 2009 - 21:53

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

Brico - February 3, 2009 - 10:33

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

Sutharsan - February 3, 2009 - 11:21

@Brico: can you supply a patch for this?

#4

Sutharsan - February 17, 2009 - 08:47
Status:active» won't fix

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

z.stolar - March 4, 2009 - 10:36
Assigned to:Anonymous» z.stolar
Status:won't fix» active

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

z.stolar - March 4, 2009 - 18:59

Attached a patch to add htmlmail support to simplenews.
Without it, simplenews turn HTML to text before htmlmail gets into action.

AttachmentSize
simplenews_htmlmail.txt 394 bytes

#7

Sutharsan - March 5, 2009 - 07:33
Version:6.x-1.0-beta5» HEAD
Status:active» needs work

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

Ashford - March 8, 2009 - 17:17
Title:MIME mail doesnt work» question about patch to add htmlmail support to simplenews

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

z.stolar - March 8, 2009 - 18:30

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

Sutharsan - March 16, 2009 - 14:12
Title:question about patch to add htmlmail support to simplenews» Support htmlmail module
Status:needs work» fixed

Attached patch is committed to HEAD. z.stolar, thanks.

AttachmentSize
simplenews.367488.patch 680 bytes

#11

System Message - March 30, 2009 - 14:20
Status:fixed» closed

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

#12

s.Daniel - July 29, 2009 - 13:12
Status:closed» needs work

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

joachim - July 30, 2009 - 09:45

#14

doknet - July 31, 2009 - 03:54
Title:Support htmlmail module» Is there a way to send HTML formatted mail using the smtp module

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

doknet - July 31, 2009 - 15:27
Title:Is there a way to send HTML formatted mail using the smtp module» Works well thank you very much

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

joachim - July 31, 2009 - 15:34
Title:Works well thank you very much » Is there a way to send HTML formatted mail using the smtp module

Just restoring the issue title :)

#17

Sutharsan - July 31, 2009 - 20:40

@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

SocialNicheGuru - August 3, 2009 - 16:34

subscribing

#19

nvisioncurtis - August 5, 2009 - 03:29

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

joachim - August 5, 2009 - 07:26

nvisioncurtis : Please try googling for basic answers: http://drupal.org/patch

#21

nvisioncurtis - August 5, 2009 - 19:38

Ah!

I didn't know about this. Thanks!

It works yeah!

#22

nvisioncurtis - August 5, 2009 - 19:40

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

s.Daniel - August 6, 2009 - 08:59

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

nvisioncurtis - August 6, 2009 - 18:11

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

nvisioncurtis - September 2, 2009 - 18:15

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

Sutharsan - September 2, 2009 - 22:25
Status:needs work» fixed

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

System Message - September 16, 2009 - 22:30
Status:fixed» closed

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

#28

eliosh - October 27, 2009 - 23:10

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

aschiwi - November 27, 2009 - 09:25

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.

 
 

Drupal is a registered trademark of Dries Buytaert.