 |
 |
 |
 |
Registered: 06/05/06
Posts: 709
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
#227838 - 07/25/09 03:41 PM
How do you remove the content from emails?
|
journeyman
|
Registered: 10/12/07
Posts: 77
|
|
We're running Ubbthreads 7.5.3. I've tried everything I can think of to get users to stop replying to the emails they get notifying them that they have a private message or a new post in a thread that they are watching. Nothing works. So I thought I would just remove the content from the email. That way they would still get the notification, with a url link to click on, but they would not see any content. But, I can't seem to figure out how to do that. The first thing I did was edit the language file mailer.php and removed PMN_CONTENT2_TEXT and PMN_CONTENT2_HTML completely. But I'm still getting the contents of the private message in the email, and the bozos are still replying to the email. Then I edited mess_reply.php PRIV_BODY so it looks like this You have received a private message at %%BOARD_TITLE%%.
You can reply to this message at the following link:
%%PM_ADDY%% I also edited sendmessage.php PRIV_BODY as follows You have received a private message at %%BOARD_TITLE%%.
You can reply to this message at the following link:
%%PM_ADDY%% What do I have to do to stop PM content from showing up in the emails? If I can figure that out, then I'll work on watched topic notifications next. Here's an example: DO NOT REPLY TO THIS EMAIL. THE SENDER WILL NEVER SEE IT!!! Hi baldeagle,
a.d.-hawk made a new post at The Stovebolt Forums
You can view the post by clicking this link. The post contents are shown below: a.d.-hawk: Re: Begun some plans We plan on being back!! Cant wait!! This email sent to you because your profile and/or board configuration allows it. You may change your preferences at any time. For private messages, the line "The post contents are shown below:" no longer appears, but the content still does. I've searched high and low to figure out where that's coming from but haven't found it. Oh, and please make this an enhancement request. I'd like to be able to uncheck boxes in the Control Panel that say "Include post contents in email" and "Include private message contents in email".
Edited by Baldeagle (07/25/09 03:55 PM)
_________________________
The Stovebolt Geek Stovebolt.com
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#227853 - 07/25/09 04:42 PM
Re: How do you remove the content from emails?
[Re: JAISP]
|
journeyman
|
Registered: 10/12/07
Posts: 77
|
|
Well, in defense of our members, our board is focused on antique Chevy and GMC trucks. So many of our members are older guys who've been mechanics, body men, painters or other tradesmen all of their lives. Computers are new to them and not the easiest thing for them to understand. I understand why they reply to the emails, but I think if the content wasn't in the email they'd be less likely to reply to the email and more likely to read it a second or third time and finally figure out that they need to click on the link.
I don't think removing the content will entirely solve the problem. I just think it's the next logical step in my campaign to reduce my workload.
Oh, and I am the server administrator, so I would have to deal with all the bounces, which would increase my workload, not decrease it. Since I'm doing this for free, for friends, I'm not interested in doing more work.
Edited by Baldeagle (07/25/09 04:46 PM)
_________________________
The Stovebolt Geek Stovebolt.com
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#227874 - 07/25/09 05:56 PM
Re: How do you remove the content from emails?
[Re: JAISP]
|
journeyman
|
Registered: 10/12/07
Posts: 77
|
|
Rick, thanks for the tip. In looking at send_message.inc.php in the scripts directory, I have a question (line 298 and following). // Now lets let them know they got a private message if they chose
// to be notified
if ($Notify == "yes") {
$mailer = new mailer();
$mailer->set_language($Lang);
$mailer->set_subject('PMN_SUBJECT', array('BOARD_TITLE' => $config['COMMUNITY_TITLE']));
$mailer->set_salute('EMAIL_SALUTE', array('USERNAME' => $Username));
$mailer->add_content('PMN_CONTENT', array('BOARD_TITLE' => $config['COMMUNITY_TITLE'], 'FROMNAME' => $fromname));
$mailer->add_content('PMN_CONTENT1', array('PM_URL' => make_ubb_url("ubb=viewmessage&message=$message_id&gonew=1" ,"", tr
ue, true)), true);
$mailer->add_content('PMN_CONTENT2', array(), true);
$mailer->add_post($fromname,$Subject,array(),$Message,$RawBody);
$mailer->ubbt_mail($Email);
}
}Where does $RawBody originate from? And why is it added after you've explicitly checked for PMN_CONTENT, PMN_CONTENT1 and PMN_CONTENT2? It seems like you want to separate the actual message from the ability to edit the content, for some reason. But I can't seem to find where RawBody is initialized. All the hits from grep point to stuff I already know about. # grep -r RawBody /usr/local/www/html/ubbthreads/*
/usr/local/www/html/ubbthreads/libs/html.inc.php: function send_message($Sender="",$To="",$Subject="",$Mess="",$Group="",$RawBody="") {
/usr/local/www/html/ubbthreads/libs/html.inc.php: if (!$RawBody) $RawBody = $Mess;
/usr/local/www/html/ubbthreads/libs/html.inc.php: $query_vars = array($message_id,$Sender,$Mess,$date,$RawBody);
/usr/local/www/html/ubbthreads/libs/html.inc.php: $mailer->add_post($ubbt_lang['UBB_SYSTEM'],$Subject,array(),$Mess,$RawBody);
/usr/local/www/html/ubbthreads/scripts/newreply.inc.php: list($ResUsername,$Main,$Subject,$Body,$Approved,$ParentUser,$Board,$RawBody,$anon) = $dbh -> fetch_array($sth);
/usr/local/www/html/ubbthreads/scripts/newreply.inc.php: $QuoteBody = "[quote=$ResUsername]$RawBody [/quote]";
/usr/local/www/html/ubbthreads/scripts/sendmessage.inc.php: $RawBody = $Body;
/usr/local/www/html/ubbthreads/scripts/sendmessage.inc.php: $query_vars = array($message_id,$user['USER_ID'],$Message,$date,$RawBody);
/usr/local/www/html/ubbthreads/scripts/sendmessage.inc.php: $mailer->add_post($fromname,$Subject,array(),$Message,$RawBody);
Edited by Baldeagle (07/25/09 05:56 PM)
_________________________
The Stovebolt Geek Stovebolt.com
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|