Re: [PHP] cant mail

2007-09-06 Thread Robert Degen
Connection/Firewall ?! -- Run telnet SMTPSERVER 25, type EHLO ENTER 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

Re: [PHP] cant mail

2007-09-06 Thread David Wonderly
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 use

RE: [PHP] cant mail

2007-09-06 Thread Sanjeev N
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