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 #184915 is a reply to message #184913] Sun, 16 February 2014 01:24 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/15/2014 1:54 PM, Peter H. Coffin wrote:
> 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.
>

Peter,

Actually, my MTA (Exim on Debian) does log why a submission was
rejected. And while this is the default for the setup, the actions can
be changed by the sysadmin.

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
[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:41:25 GMT 2024

Total time taken to generate the page: 0.04155 seconds