RE: cant mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Try to set from the program using ini_set()function and or check your mail
server is correct or what.

In most of the case I have used as follows
Ini_set("SMPT","mail.domainname.com");
And port

If mail server doesn't exist then used as
Ini_set("SMPT","domainname.com");
And port

And believe me it worked well...
You just confirm your mailing server and your problem solves


Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan
-----Original Message-----
From: Diana Castillo [mailto:dcastillo@xxxxxxxxxxxxxxx] 
Sent: Thursday, September 06, 2007 4:12 PM
To: php-general@xxxxxxxxxxxxx
Subject:  cant mail

when I try to send mail using this code:

mail("dcastillo@xxxxxxxxxxxxxxx","TEST MAIL","TESTING MAIL");

I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at 
"smtp.tsanalytics.com" port 25, verify your "SMTP" and "smtp_port" setting 
in php.ini or use ini_set() in C:\Inetpub\wwwroot\intranet\test.php on line 
4


my settings in php.ini are
SMTP = "smtp.tsanalytics.com"
smtp_port = 25

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux