Page 1 of 1

Using SMTP validation for sending email

Posted: Fri May 01, 2009 1:50 pm
by girishkardam
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

Posted: Fri May 01, 2009 4:33 pm
by Klemen
Unfortunately I can't provide support for third party classes, but if that Mail class has some sort of debug feature built-in (also try to enable Debug mode in Hesk) and you get an error message you can post it here if anyone gets any ideas.