 |
 |
 |
 |
Registered: 06/05/06
Posts: 709
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#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
|
|
|
|
|
 |
 |
 |
 |
|
|