Stopping messages from going to emails

I am using D6.1.6. When someone sends a message within my website to someone else, I’d like to know if there is away to disable it from going to the user’s email as well, but only keep it within inbox messages for the user to see when he/she logs in.

The reason I wanted to do this is because I’ve been killed with SPAM. My members are complaining about the Love Emails they have been getting. What really troubles me the most is how in the world can someone send a SPAM email to all of my users in my database despite the fact my hosting company allows only 500 emails to be sent at a time.. Could someone shed some light please..

Thank you so much!

Quote · 29 Jun 2010

Hello!

For disabling sending any mails/notifications by email need to comment next lines in compose.php:

// Don't send notification if message is sending to email
if ( ($_POST['notify'] && !($_POST['sendto'] == "email" || $_POST['sendto'] == "both") || $en_inbox_notify) )
{
$message_text = getParam("t_Compose");
$subject = getParam('t_Compose_subject');

$aPlus['senderNickName'] = $sender ? $sender['NickName'] : _t("_Visitor");

$notify_res = sendMail( $recipient['Email'], $subject, $message_text, $recipient['ID'], $aPlus );

if ( !$notify_res )
echo "<div class=\"err\">". _t("_Notification send failed") ."</div><br />\n";
}

// Send message to email
if ( $en_dest_choice && ($_POST['sendto'] == "email" || $_POST['sendto'] == "both") )
{
$message_text = getParam("t_Message");
$subject      = process_pass_data( $_POST['mes_subject'] );

$aPlus['MessageText'] = strmaxtextlen( clear_xss( replace_full_uris( process_pass_data( $_POST['text'] ) ) ), $max_message_size);

$result = sendMail( $recipient['Email'], $subject, $message_text, $recipient['ID'], $aPlus );
}

Regard

Quote · 30 Jun 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.