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 #184902 is a reply to message #184898] Fri, 14 February 2014 15:00 Go to previous messageGo to previous message
Ben Bacarisse is currently offline  Ben Bacarisse
Messages: 82
Registered: November 2013
Karma:
Member
Jerry Stuckle <jstucklex(at)attglobal(dot)net> writes:

> On 2/13/2014 8:42 AM, Ben Bacarisse wrote:
>> Michael Vilain <vilain(at)NOspamcop(dot)net> writes:
>>
>>> In article <XnsA2D2F27E54CEFR2D2(at)127(dot)0(dot)0(dot)1>,
>>> GS <nomail(at)nospam(dot)org(dot)invalid> wrote:
>>>
>>>> I've got a php mail script which was working ok but the mail() call
>>>> returned a bunch of errors today. The trouble is that it only returns true
>>>> or false, I was wondering if there is any way to get more feedback from
>>>> sendmail about what what went wrong, since I don't know whether I fed it
>>>> bad data or whether sendmail playing up. I can't find any alternative mail
>>>> calls I could use in the PHP manual.
>>>>
>>>> This is on a shared virtual hosting system so I don't have access to the
>>>> linux or sendmail configuration and I can't find any log files in my
>>>> userspace that pertain to the sendmail calls. The system is running PHP
>>>> 5.3.27, I think the OS is Linux 2.6.32.
>>>
>>> mail() is all you're gonna get in a shared hosting facility.
>>
>> I've used one shared hosting provided that offered the PEAR Mail module
>> which could be used to connect to whatever SMTP server you liked (one of
>> which was their own). It was a while ago, but I think you get better
>> error messages from it, though nothing is going to beat getting the
>> server's logs for diagnosing the problem.
>>
>> <snip>
>
> How does that solve his problem? He doesn't want to connect to a
> different email server - he wants to get this one working.

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.

--
Ben.
[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:28:08 GMT 2024

Total time taken to generate the page: 0.04704 seconds