I am using zend framework and i write the following code for sending a mail from another sever.Bu t dont know why it throws the following exception.
5.7.1 This email has been blocked. The email message appeared to contain a data leak
I am using the following code
public function sendMail($a_Subject,$a_Message,$a_toMail,$a_toName,$a_frmMail,$a_frmName){
$theConfig = array('auth' => 'login',
'username' => 'someusername.ocm',
'password' => 'somepass');
$objTranpt = new Zend_Mail_Transport_Smtp('somehost.net', $theConfig);
$mailObj = new Zend_Mail();
$mailObj->setBodyHtml($a_Message);
$mailObj->setFrom($a_frmMail, $a_frmName);
$mailObj->addTo($a_toMail,$a_toName);
$mailObj->setSubject($a_Subject);
$mailObj->send($objTranpt);
return true;
}
And when i try to send mail i got thw following error on my try catch..How to rersolve this??Thanks for the help in advance...