Page 1 of 1

How to put the post text in the email

Posted: Tue Aug 15, 2006 4:09 pm
by jburr2
After playing around with the code (I'm an amateur) I figured out an easy way to get the post text to be in the email notification.

1. Open the mboard.php file for editing
2. Scroll down until you see the section for "notify admin". You can also use control-f and search for the word "notify".
3. Somewhere in the message type "$comments" (without the quotes).
4. Save the file to your server.

The post text will now show up in the email. It worked for me I hope it works for you.

Weston

Posted: Tue Aug 15, 2006 4:17 pm
by jburr2
Here is what I did:

/* Notify admin */
if ($settings['notify'] == 1)
{

$message = "$comments

$settings[mboard_url]/$newfile

End of message
";

mail($settings['admin_email'],'New forum post',$message);
}