FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » getting php mail error info
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: getting php mail error info [message #184913 is a reply to message #184902] Sat, 15 February 2014 18:54 Go to previous messageGo to previous message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma:
Senior Member
On Fri, 14 Feb 2014 15:00:28 +0000, Ben Bacarisse wrote:
> Often, (usually? always?) the local sendmail is just a client that
> connects to the local MTA. If you use the Mail module to connect, you
> can, sometimes, get more error information than you do from mail().
> Nothing that happens once the message is queued, of course, but if the
> mail logs are inaccessible, it might be better than the success/fail
> from PHP's mail() function.

OP said the mail() returned false. That's not usually a problem that's
going to show up in mail logs, because it's not even gotten as far as
something that logs anything. Why a mail submission would fail varies by
host OS, too. Pretty much NOTHING short of a systemwide mail failure or
a blatantly obvious problem with the submission (Nothing in the $to, for
example) will get a mail() fail on a unix system. Windows will fail a
mail() if the remote Mail Transport Agent doesn't answer or rejects the
mail, which it *may* do for any reason, including "you've sent too much
mail lately". In that case, yeah, it might be tricky, but there's still
going to be no logs to look at.

--
Cunningham's First Law:
Any sufficiently complex deterministic system will exhibit
non-deterministic behaviour.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array key names
Next Topic: strpos() before str_replace()? Or, maybe strtr()?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 21:43:10 GMT 2024

Total time taken to generate the page: 0.04843 seconds