|
|
 |
Re: FN-FORUM: Emailing from PHP
date posted 16th June 2003 14:37
Thanks - I will try empty() - stange though - I had googled on is_empty()
and it found. You mustn't be the only one who gets it wrong.
Pam
it
----- Original Message -----
From: "Nick Grimshaw" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, June 16, 2003 9:29 AM
Subject: RE: FN-FORUM: Emailing from PHP
> Pam:
> > Nick said to use !is_empty($Maximum) instead of $Maximum !== "" but I
am
> > now getting :
> >
> > Fatal error: Call to undefined function: is_empty() in
> > c:\apache\htdocs\phptest\success.php on line 16
>
>
> I blame PHP's inconsistent naming. The function is actually 'empty()'.
>
> > I see that Mail is a Boolean - where is the error message stored if it
> > fails?
>
> Like someone said, the actual *sending* of the mail is nothing to do with
> PHP. All PHP can see if whether the program that it submitted to returned
a
> 'success' code (which probably just means that the headers were sensible).
>
> The best you can probably do is:
> if (!mail(...))
> exit("Argh! Couldn't send the mail.");
>
> - Nick Grimshaw
> { if you're not part of the solution, you're part of the precipitate. }
>
>
> ==========
> Graduate & Professional Financial Services - Specialists in MORTGAGES for
> FREELANCERS. House purchase, re-mortgage (including debt consolidation and
> capital raising), Buy to Let, flexible offset and current account
mortgages.
> Visit our website at http://www.gradprof.co.uk?fnet
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|