MyBB Community Forums

Full Version: Seting up mail
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Evening

Does anyone know how i can change the mail setting so when a mail is send from the board it display's what i want it to and not "nobody" etc?

Cheers
yup. ./inc/functions.php,
function mymail($to, $subject, $message, $from="")
{
	global $db, $mybb, $settings;
	$from = (!$from||strlen(trim($from))==0) ? "\"$settings[bbname] Mailer\" <$settings[adminemail]>" : $from;
	mail($to, $subject, $message, "From: $from");
}
is the mail function and
$from = (!$from||strlen(trim($from))==0) ? "\"$settings[bbname] Mailer\" <$settings[adminemail]>" : $from;
is the line your looking for?
Still no joy

Cant get lost passwords to be sent to user's e-mails due to this Sad
my host mail is working fine any idea's why there not been sent ?
anyone? its doing my head in cant seem to figure it