[PHP] cant mail
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 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
Re: [PHP] cant mail
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 PROTECTED]'); or write it into your php.ini at... sendmail_from NULLPHP_INI_ALL (found at http://de3.php.net/mail, Runtime Configuration) So far! Rob -- Und komm, Du brauchst nur einen Baum um 1000 Streichhölzer herzustellen. Aber Du brauchst nur einen Streichholz um 1000 Bäume abzubrennen. Meine Güte wer soll das denn jetzt verstehen? Ganz egal, komm wir bleiben noch etwas länger. Die Bedeutung zahlt ja immer der Empfänger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fw: [PHP] cant mail
sorry I dont know how to run that telnet command, it doesnt work in my dos window. I downloaded absolute telnet but I dont know how to send a message withit. as far as sendmail_from, I already have that set to an email, so that isnt theproblem. Could it be that in out look express it says in my mail setup My server requires authentification? - Original Message - From: Robert Degen [EMAIL PROTECTED] To: PHP Genral php-general@lists.php.net Sent: Thursday, September 06, 2007 12:54 PM Subject: Re: [PHP] cant mail 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 PROTECTED]'); or write it into your php.ini at... sendmail_from NULL PHP_INI_ALL (found at http://de3.php.net/mail, Runtime Configuration) So far! Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fw: [PHP] cant mail
I found telenet.exe that comes with windows, but when I type in SMTPSERVER 25, type EHLO ENTER it says Command not valid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Fw: [PHP] cant mail
On 9/6/07, Diana Castillo [EMAIL PROTECTED] wrote: I found telenet.exe that comes with windows, but when I type in SMTPSERVER 25, type EHLO ENTER it says Command not valid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php First of all, I wasn't sure which post of yours to reply to, but since Rob replied here, I'll jump in on this one. What he means is to do the following (since you're on Windows): 1.) Click the Start menu. 2.) Click `Run` 3.) Type: telnet 4.) When telnet starts, type: open SMTPSERVER 25 (Note: Replace SMTPSERVER with the correct server address) 5.) If it connects, type: EHLO 5b.) If it doesn't connect, then investigate the possible reasons why. Hope that helps with the part your testing now, Diana. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cant mail
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 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 I had this problem and I found that changing the port to 26 instead of 25 fixed all SMTP problems that I had. Maybe this will help. -Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] cant mail
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:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 4:12 PM To: php-general@lists.php.net Subject: [PHP] cant mail 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 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