Using SMTP validation for sending email
Posted: Fri May 01, 2009 1:50 pm
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi I want to user smtp authentication for sending email:
$smtpinfo["host"] = "smtp1.domain.com";
$smtpinfo["port"] = "943";
$smtpinfo["auth"] = true;
$smtpinfo["username"] = "indoreithelpdesk@domain.com";
$smtpinfo["password"] = "123456";
/* Send e-mail */
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
$headers.="Return-Path: $hesk_settings[webmaster_mail]\n";
$mail_object =& Mail::factory("smtp", $smtpinfo);
$mail_object->send($email,$headers,$message);
but the above code is not working kindly suggest me is there any changes required in the above code. I also include mail.php but still the code is not working. Kindly consider this request as urgent one. Thx in advance.
with regards
Girish Kardam
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi I want to user smtp authentication for sending email:
$smtpinfo["host"] = "smtp1.domain.com";
$smtpinfo["port"] = "943";
$smtpinfo["auth"] = true;
$smtpinfo["username"] = "indoreithelpdesk@domain.com";
$smtpinfo["password"] = "123456";
/* Send e-mail */
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
$headers.="Return-Path: $hesk_settings[webmaster_mail]\n";
$mail_object =& Mail::factory("smtp", $smtpinfo);
$mail_object->send($email,$headers,$message);
but the above code is not working kindly suggest me is there any changes required in the above code. I also include mail.php but still the code is not working. Kindly consider this request as urgent one. Thx in advance.
with regards
Girish Kardam