Using SMTP validation for sending email

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
girishkardam
Posts: 1
Joined: Fri May 01, 2009 1:43 pm

Using SMTP validation for sending email

Post 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
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply