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
Diana Castillo wrote:
when I try to send mail using this code:
mail("[EMAIL PROTECTED]","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
Connection/Firewall ?!
--
Run telnet 25, type EHLO and see if he
talks to you
No anonymous relaying ?!
Set the From header, caus maybe your smtp doesn't relay for
everyone :-)
mail ($addressee, $sub, $body, 'From: [EMAIL PROTECTED]');
or write it
3 matches
Mail list logo