Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: melanieh75 on March 19, 2011, 12:00:18 PM

Title: Private Message Email Notification
Post by: melanieh75 on March 19, 2011, 12:00:18 PM
I have been looking, and cannot seem to find if this already exists. I would like to change the notification email users receive when they get a private message. I would like to hide the text of the PM, instead force the user to click a link to view it. That way, people will not reply to the email (which happens a lot), but will be forced to view the PM on the site.

I found "Don't allow post text in notifications?" under Features and Options > Basic Features. But, that seems to only hide the text a user receives when they are watching a thread.

Hoping someone can point me in the right direction.

Thanks!

Mel
Title: Re: Private Message Email Notification
Post by: Illori on March 19, 2011, 01:24:43 PM
which version of smf are you running?
Title: Re: Private Message Email Notification
Post by: melanieh75 on March 22, 2011, 09:13:43 AM
1.1.13
Title: Re: Private Message Email Notification
Post by: kat on March 22, 2011, 10:00:25 AM
Admin>Features and Options>Basic Features>Don't allow post text in notifications?
Title: Re: Private Message Email Notification
Post by: Illori on March 22, 2011, 10:23:08 AM
Quote from: melanieh75 on March 19, 2011, 12:00:18 PM
I found "Don't allow post text in notifications?" under Features and Options > Basic Features. But, that seems to only hide the text a user receives when they are watching a thread.

Quote from: K@ on March 22, 2011, 10:00:25 AM
Admin>Features and Options>Basic Features>Don't allow post text in notifications?

i wonder if that was tried already ;)
Title: Re: Private Message Email Notification
Post by: kat on March 22, 2011, 10:30:25 AM
OOPS!

Brain-Fart!
Title: Re: Private Message Email Notification
Post by: melanieh75 on March 23, 2011, 09:03:13 AM
K@ I love your current profile pic. Looks like my crabby abby cat.

Any ideas? No mod for this that anyone is aware of? Seems like something that has surely come up before.

Mel
Title: Re: Private Message Email Notification
Post by: Arantor on March 23, 2011, 09:08:41 AM
Edit Themes/default/languages/PersonalMessage.english.php

Code (find) Select
$txt[562] = 'You have just been sent a personal message by SENDER on ' . $context['forum_name'] . '.' . "\n\n" . 'IMPORTANT: Remember, this is just a notification. Please do not reply to this email.' . "\n\n" . 'The message they sent you was:' . "\n\n" . 'MESSAGE';

Code (replace) Select
$txt[562] = 'You have just been sent a personal message by SENDER on ' . $context['forum_name'] . '.' . "\n\n" . 'IMPORTANT: Remember, this is just a notification. Please do not reply to this email.' . "\n\n" . 'Instead, please visit the forum at ' . $GLOBALS['scripturl'] . '?action=pm to read your message.';
Title: Re: Private Message Email Notification
Post by: melanieh75 on March 26, 2011, 03:01:12 PM
Perfect! Thank you
Title: Re: Private Message Email Notification
Post by: Rob Lightbody on June 17, 2012, 12:58:09 PM
This topic worked a treat for me too, thanks!

One more thing though - when they click the link, I'd prefer it just took them to the 'read message' screen, rather than what it actually does - which is as if they'd already hit 'reply' (with the message already quoted and in place).

Can this be done?

Cheers,

- Rob
Title: Re: Private Message Email Notification
Post by: OCJ on October 24, 2012, 11:19:14 AM
Yes, something should be done about this....

I'm sick of  getting personal messages because they hit 'reply' in their own email software to 'noreply@mywebsite'.

And the link should be to read - not to quoted bbcoded reply whick is difficult to read anyway.


Title: Re: Private Message Email Notification
Post by: jonbius on August 14, 2013, 02:49:07 PM
Quote from: Arantor on March 23, 2011, 09:08:41 AM
Edit Themes/default/languages/PersonalMessage.english.php

Code (find) Select
$txt[562] = 'You have just been sent a personal message by SENDER on ' . $context['forum_name'] . '.' . "\n\n" . 'IMPORTANT: Remember, this is just a notification. Please do not reply to this email.' . "\n\n" . 'The message they sent you was:' . "\n\n" . 'MESSAGE';

Code (replace) Select
$txt[562] = 'You have just been sent a personal message by SENDER on ' . $context['forum_name'] . '.' . "\n\n" . 'IMPORTANT: Remember, this is just a notification. Please do not reply to this email.' . "\n\n" . 'Instead, please visit the forum at ' . $GLOBALS['scripturl'] . '?action=pm to read your message.';

Does this work for 2.x? I get a ton of messages with people replying to a PM notification.
Title: Re: Private Message Email Notification
Post by: Arantor on August 14, 2013, 04:18:52 PM
No, it doesn't, needs rewriting for 2.x and I don't have time right now to do so, sorry.
Title: Re: Private Message Email Notification
Post by: Chalky on August 14, 2013, 04:26:36 PM
See here for the v2 equivalent   ;)

http://www.simplemachines.org/community/index.php?topic=508577.0
Title: Re: Private Message Email Notification
Post by: jonbius on August 14, 2013, 04:47:37 PM
Thanks y'all!
Title: Re: Private Message Email Notification
Post by: Chalky on August 14, 2013, 04:51:50 PM
you're welcome  :)