PDA

View Full Version : How to customize email notifications


Kaemon
07-23-2009, 01:34 AM
I set up some subforums to automatically notify a mailing list address when a new thread is started. I didn't like the default email notification. Below is an example of the default:

http://img2.pict.com/91/c4/1d/1279154/0/before.gif

So I changed it to this:

http://img2.pict.com/2e/c9/b3/1279155/0/after.gif

To customize the message structure, do the following:

1. Login to the Admin Control Panel
2. Open up the Languages & Phrases group on the left
3. click on Phrase Manager
4. Select "Email Body Text" from the Phrase Type and select GO
5. Click Edit to the right of the "Moderator" varname on page 2

Below is the default code for $vbphrase[moderator]


Hello,

$bbuserinfo[username] has just posted in the $foruminfo[title_clean] forum of $vboptions[bbtitle] under the title of $threadinfo[prefix_plain]$threadinfo[title].

This thread is located at $vboptions[bburl]/showthread.php?t=$threadinfo[threadid]

Here is the message that has just been posted:
***************
$post[message]
***************


Below is the custom code that I created for the example above:


*** NEW THREAD NOTIFICATION *** (DO NOT REPLY)

To read or reply to post, click here -> $vboptions[bburl]/showthread.php?t=$threadinfo[threadid]

FROM: $bbuserinfo[username]
SUBJECT: $threadinfo[prefix_plain]$threadinfo[title]
FORUM: $foruminfo[title_clean] ($vboptions[bbtitle])

Here is the message that $bbuserinfo[username] just posted:
***************
$post[message]
***************


I hope this helps someone... :)