Re: Emailing via mail(), secondary servers
| From: | hubo | Date: | Wed, 11 Feb 2004 15:24:12 +0000 |
| Subject: | Re: Emailing via mail(), secondary servers | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22788@lists.php.net to get a copy of this message | ||
"Paul J. Smith" <pjsmith@microtech.co.gg> schrieb im Newsbeitrag news:C2DA8EC72BEE0740BC5C7F5E04D4EB510473DE@holly.mtech.gg...
Hi,
At the moment you only seem able to send mail via a specific host
specified in the ini file. I want some resilience so I can send
emails even if the first mail server cannot accept email.
Problem 1
As far as I know mail() returns no result so you cannot tell if your
first attempt to mail something was OK or not.
Do not understand what you mean. In php manual:
"mail() returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
"
And on my W2K box the function does return false if I pause the smtp server.
Problem 2
You can't override the relaying server ip in the mail() function.
I have put on a second server a php script which sends mails for me. From the first one you can
call the second server using standard HTTP protocol ( fopen("http://.... ) ).
Has anyone dealt with this? Any suggestions before I try and botch my
own solution?
Thanks.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php