Log in

View Full Version : PM Notification - Include copy of message?


teonix
07-20-2005, 05:57 AM
Hello,

I was wondering if anyone has already done this, or if it would be an easy task to accomplish the following.

A user can choose to receive a notification in their email if they receive a new Private Message. Currently that notification only says something simple like "you have a new PM, login and check it" in more words than that.

What I would like, is for the notification to include a copy of the message text.

So the notification would read something like:

Dear User,

You have received the following new Private Message at [Forum Name]. To reply to this private message, please log in to your account.

----------- Private Message Content ---------------

Message Content Displayed Here

---------------------------------------------------

Marco van Herwaarden
07-20-2005, 06:19 AM
Edit the 'pmreceived' Phrase. In the end add the following:
----------- Private Message Title---------------
$title
----------- Private Message Content ---------------
$message
---------------------------------------------------

This is not tested, but i think it should work.

teonix
07-20-2005, 09:42 AM
Well I tested it a couple times, and it seems to be working perfectly.

Thank you very much, that was much easier then I expected :P

mkdevo
07-20-2005, 11:43 AM
thanks! i actually posted a mod request for this a while back.. turned into a discussion, but no solution.. wish i knew it was so easy!

teonix
07-20-2005, 07:54 PM
Yay, happy to have helped you find your solution too :)

The only thing that may inconvenience some is that the message isn't formatted in the email, so it displays kind of like the following:

----------------------------------

[qoute]message blah blah[/quote]

blah blah message blah blah

----------------------------------


I also even went a step further and added the $title to the notification subject, you may consider doing that too.

mkdevo
07-21-2005, 09:46 AM
yeah, i did the following.. sort of setting it up like an email header..

$touserinfo[username],

You have received a new private message at $vboptions[bbtitle] from $bbuserinfo[username]. Please click here to log in and reply:
$vboptions[bburl]/private.php


FROM: $bbuserinfo[username]
TO: $touserinfo[username]
SUBJECT: $title

$message

Rocket_Cowboy
01-03-2006, 04:12 PM
yeah, i did the following.. sort of setting it up like an email header..

$touserinfo[username],

You have received a new private message at $vboptions[bbtitle] from $bbuserinfo[username]. Please click here to log in and reply:
$vboptions[bburl]/private.php


FROM: $bbuserinfo[username]
TO: $touserinfo[username]
SUBJECT: $title

$message

What version of VB has this been tested against? In a quick test I did with 3.5.2, I don't get anything for $title and $message ... althought the other variables ($bbuserinfo, $touserinfo) did translate correctly.