MyBB Community Forums
HTML Emails with MYBB? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Requests (https://community.mybb.com/forum-65.html)
+---- Thread: HTML Emails with MYBB? (/thread-22205.html)

Pages: 1 2


HTML Emails with MYBB? - Tim B. - 2007-08-19

Does anyone know if it is possible to send html emails using the mass email tool in MYBB. Basicly i want to send a newsletter in HTML but it wont work. If it is possible then HOW?


RE: HTML Emails with MYBB? - MrD. - 2007-08-20

You have to change the content type header in my_mail from text/plain to text/html

functions.php - Line 354; Change:
$headers .= "Content-Type: text/plain; charset=\"{$charset}\"\n";

To:
$headers .= "Content-Type: text/html; charset=\"{$charset}\"\n";



RE: HTML Emails with MYBB? - Tim B. - 2007-08-20

Thankyou Very much! I will try it this arvo.

Thanks again.


RE: HTML Emails with MYBB? - Tim B. - 2007-08-21

I tryed it but when i recive the email (in gmail) it still comes up with just HTML? Do i send all the code in the email or just the body because i have CSS in the head section so i thought i would have to include that.


RE: HTML Emails with MYBB? - Tim B. - 2007-08-22

Is the fuctions.php file you are talking about in the INC directory because thats the one i changed or is there another one?


RE: HTML Emails with MYBB? - MrD. - 2007-08-22

That was the file I meant so I don't know why it isn't working. Anyone else know?


RE: HTML Emails with MYBB? - Ryan Gordon - 2007-08-22

Not sure here either. As far as I can tell it should work. btw, the functions.php file MrDoom was talking about was located in inc/functions.php


RE: HTML Emails with MYBB? - The Jackal - 2007-08-23

Is your Gmail set to receive HTML emails as default?


RE: HTML Emails with MYBB? - Martin M. - 2007-08-23

This one works: http://community.mybboard.net/showthread.php?tid=13294


RE: HTML Emails with MYBB? - Tim B. - 2007-08-24

Ok that worked thanks, though none of the images are showing. I have made sure that all the URL's are absolute so i am not sure whats going on?