Rick, thanks for the tip. In looking at send_message.inc.php in the scripts directory, I have a question (line 298 and following).
Code
                // 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.
Code
# 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);

Last edited by Baldeagle; 07/25/2009 5:56 PM.

The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 8.0.0
Release 20240826
Server OS Linux
Server Load 0.11
Web Server Apache/2.4.37
PHP Version 8.3.11
MYSQL Version 8.0.39
Database Size 1.82 GB