This post is about the new Dolphin 7... There is nothing like that at line 845. I think that you are refering to an old version.
/**
* Send email function
*
* @param string $sRecipientEmail - Email where email should be send
* @param string $sMailSubject - subject of the message
* @param string $sMailBody - Body of the message
* @param integer $iRecipientID - ID of recipient profile
* @param array $aPlus - Array of additional information
*
*
* @return boolean - trie if message was send
* - false if not
*/
function sendMail( $sRecipientEmail, $sMailSubject, $sMailBody, $iRecipientID = '', $aPlus = '', $sEmailFlag = 'text' ) {
global $site;
if( $iRecipientID )
$aRecipientInfo = getProfileInfo( $iRecipientID );
$sMailHeader = "From: =?UTF-8?B?" . base64_encode( $site['title'] ) . "?= <{$site['email_notify']}>";
$sMailParameters = "-f{$site['email_notify']}";
$sMailSubject = str_replace( "<SiteName>", $site['title'], $sMailSubject );
$sMailBody = str_replace( "<SiteName>", $site['title'], $sMailBody );
$sMailBody = str_replace( "<Domain>", $site['url'], $sMailBody );
$sMailBody = str_replace( "<recipientID>", $aRecipientInfo['ID'], $sMailBody );
$sMailBody = str_replace( "<RealName>", $aRecipientInfo['NickName'], $sMailBody );
$sMailBody = str_replace( "<NickName>", $aRecipientInfo['NickName'], $sMailBody );
$sMailBody = str_replace( "<Email>", $aRecipientInfo['Email'], $sMailBody );
$sMailBody = str_replace( "<Password>", $aRecipientInfo['Password'], $sMailBody );
if( is_array($aPlus) ) {
foreach ( $aPlus as $key => $value ) {
$sMailBody = str_replace( '<' . $key . '>', $value, $sMailBody );
}
}
$sMailSubject = '=?UTF-8?B?' . base64_encode( $sMailSubject ) . '?=';
$sMailHeader = "MIME-Version: 1.0\r\n" . $sMailHeader;
if( 'html' == $sEmailFlag) {
$sMailHeader = "Content-type: text/html; charset=UTF-8\r\n" . $sMailHeader;
$iSendingResult = mail( $sRecipientEmail, $sMailSubject, $sMailBody, $sMailHeader, $sMailParameters );
} else {
$sMailHeader = "Content-type: text/plain; charset=UTF-8\r\n" . $sMailHeader;
$iSendingResult = mail( $sRecipientEmail, $sMailSubject, html2txt($sMailBody), $sMailHeader, $sMailParameters );
}
return $iSendingResult;
}
***************************************
I just love it when someone tries to correct one of the experienced modders that is trying to help someone out for free...
Above is the full code from 6.1.4 and the line Guatam refers to is right there in the middle... Methinks you might not have the correct version if your not finding it... It's right in the function sendMail where one would expect to find it. And yes, it could be modified to do as Guatam says and achieve the results you want.
Now, the thread may be about 7, but someone asked for help and he offered it... Lighten up...