How to put the post text in the email

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
jburr2
Posts: 5
Joined: Tue Aug 08, 2006 2:50 am

How to put the post text in the email

Post 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
Last edited by jburr2 on Tue Aug 15, 2006 4:16 pm, edited 1 time in total.
jburr2
Posts: 5
Joined: Tue Aug 08, 2006 2:50 am

Post 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);
}
Locked