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 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



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 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

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 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