MyBB Community Forums

Full Version: Select the email parse format
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to suggest an email configuration option.

Currently it is not possible to send emails with html because the accepted format is Text only.

Every time I update the forum I edit the following files replacing Text by Both to be able to send emails with html.


.../forum/inc/class_mailhandler.php
$parse_format = 'text';
$format="text"

.../forum/member.php
my_mail($to_user['email'], $mybb->get_input('subject'), $message, '', '', '', false, 'text', '', $from);

.../forum/sendthread.php
my_mail($mybb->input['email'], $mybb->input['subject'], $message, "", "", "", false, "text", "", $mybb->input['fromemail']);

.../forum/contact.php
my_mail($contactemail, $subject, $message, '', '', '', false, 'text', '', $mybb->get_input('email', MyBB::INPUT_STRING));

.../forum/inc/functions.php
function my_mail($to, $subject, $message, $from="", $charset="", $headers="", $keep_alive=false, $format="text", $message_text="", $return_email="")