News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu

Dolphin 5.6 community builder

Started by Wizzard308, February 19, 2007, 07:42:46 AM

Previous topic - Next topic

Wizzard308

Anyone here run or attempted to run the Dolphin 5.6 software on here?
Im having some major issues with mine and cant seem to resolve them. Anyone with experience here are welcome to offer advice :D

bonehead

Maybe a list of errors or what is going wrong would get you more help.

Wizzard308

#2
Well as of right now the main holdup is the software will not send out emails. Email has been enabled on the account (here) but no email goes out when a user registers or when I send email out to them from the admin panel. Here is the email code they are using...guess this is what you need, Im not much on this code stuff, anyone see something wrong in it or something I need to change? 
NOTE: Actually this code is from the GPLdate rev39 version which is based on Dolphin 5.3 I had reverted back to this version because its code is more stable...humpff except for the email part lol

function sendMail( $sRecipientEmail, $sMailSubject, $sMailBody, $iRecipientID = '', $aPlus = '' )
{
global $site;

if( $iRecipientID )
{
$profileQuery = "SELECT `ID`, `NickName`, `RealName`, `Email`, `Password`, `Status`, `EmailFlag` FROM `Profiles` WHERE `ID` = '" . (int)$iRecipientID . "';";
$aRecipientInfo = db_arr("$profileQuery");
}

$sMailHeader = "From: {$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>", ( ( 1 < strlen($aRecipientInfo['RealName'] ) ? $aRecipientInfo['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 );
}
}


if( 'HTML' == $aRecipientInfo['EmailFlag'])
{
$sMailHeader = "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=iso-8859-1\r\n" . $sMailHeader;
$iSendingResult = mail( $sRecipientEmail, $sMailSubject, $sMailBody, $sMailHeader, $sMailParameters );
}
else
{
$iSendingResult = mail( $sRecipientEmail, $sMailSubject, html2txt($sMailBody), $sMailHeader, $sMailParameters );
}

return $iSendingResult;
}

bonehead

Um.... contact an admin to enable email on the account.