Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML email problem


grbeneke

Recommended Posts

Posted

I did a search on the forum and didn't find any answers to this problem - i hope i'm not doubling up:-

 

I have been trying to send a newsletter off my new OSC site and i keep on having the emails arriving and displaying with all their HTML tags visable.

 

I know what the problem is: the MIME header that is being sent is text/plain instead of text/html...

And i took a look at the emailer class (email.php) and its seems that it supports html coded emails but i can't work out what i should be doing to make the email arrive marked as text/html

Posted
I did a search on the forum and didn't find any answers to this problem - i hope i'm not doubling up:-

 

I have been trying to send a newsletter off my new OSC site and i keep on having the emails arriving and displaying with all their HTML tags visable.

 

I know what the problem is: the MIME header that is being sent is text/plain instead of text/html...

And i took a look at the emailer class (email.php) and its seems that it supports html coded emails but i can't work out what i should be doing to make the email arrive marked as text/html

 

you set use HTML emails to true in admin ?

Treasurer MFC

Posted

Ok thanx - i'd forgotten about that setting.

 

I changed it and it seems to have had absolutely no effect on anything - the emails still don't show up correctly... and the MIME header that is being sent is still wrong!

 

Any other suggestions?

Posted

Change the line (maybe 2) in /includes/modules/newsletters/newsletters.php from:

 

$mimemessage->add_text($this->content);

 

to:

 

$mimemessage->add_html($this->content);

 

I nicked this from an old post but I had it in a text file, hope it helps ya.

Kenneth S

--------------

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...