grbeneke Posted April 27, 2005 Share Posted April 27, 2005 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 Link to comment Share on other sites More sharing options...
boxtel Posted April 27, 2005 Share Posted April 27, 2005 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 <{POST_SNAPBACK}> you set use HTML emails to true in admin ? Treasurer MFC Link to comment Share on other sites More sharing options...
grbeneke Posted April 27, 2005 Author Share Posted April 27, 2005 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? Link to comment Share on other sites More sharing options...
KennethS Posted April 27, 2005 Share Posted April 27, 2005 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" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.