note 108952 added to function.mail
| From: | Steph68 | Date: | Thu, 07 Jun 2012 17:30:07 +0000 |
| Subject: | note 108952 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188445@lists.php.net to get a copy of this message | ||
Hi!
I don't understand, are there some known troubles with this function?
Here is a VERY basic script (php 5.3.8 with wamp server):
<?php
$to = 'xxxxxxxxxx'; 'my real email
$subject = 'le sujet';
$message = 'Bonjour !';
$headers = 'From: webmaster@example.com' . "\r\n".'Reply-To:
webmaster@example.com'."\r\n".'X-Mailer: PHP/' . phpversion();
ini_set("SMTP","smtp.orange.fr");
ini_set("smtp_port","25");
mail($to, $subject, $message, $headers);
?>
And here is what I get(?????):
Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.orange.fr" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
I have to say, I already checked the smtp, and no problem to connect with a basic TELNET
session.....
So what the hell?
Any information would be appreciated ;-)
Thanks.
See ya.
----
Server IP: 69.147.83.197
Probable Submitter: 83.194.97.154
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/108952
Del: integrated -- https://master.php.net/note/delete/108952/integrated
Del: useless -- https://master.php.net/note/delete/108952/useless
Del: bad code -- https://master.php.net/note/delete/108952/bad+code
Del: spam -- https://master.php.net/note/delete/108952/spam
Del: non-english -- https://master.php.net/note/delete/108952/non-english
Del: in docs -- https://master.php.net/note/delete/108952/in+docs
Del: other reasons-- https://master.php.net/note/delete/108952
Reject -- https://master.php.net/note/reject/108952
Search -- https://master.php.net/manage/user-notes.php