Re: I need some help or a .45 magnum
| From: | Hugh Bothwell | Date: | Sat, 04 Aug 2001 17:56:20 +0000 |
| Subject: | Re: I need some help or a .45 magnum | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8661@lists.php.net to get a copy of this message | ||
"Rodney" <mryendor@yahoo.com> wrote in message
news:20010804164322.78791.qmail@pb1.pair.com...
> Hello,
>
> I'm new to php. I'm having trouble making the mail function work.
> I wrote a simple mail script that supports mail delivery when a user
> fills out a form. It's not working.
>
> The editor tells me this is the problem:
> mail("mryendor@yahoo.com", "Feedback", $msg, $mailheaders);
> However I don't see it.
I don't see anything offhand either;
What is the error message?
Try show_source() to check what the interpreter is seeing.
Try function_exists("mail") to make sure mail() is available.
Run phpinfo() and check your SMTP set-up.
Try mailing with $msg = "" and no extra headers.
Note that the mail RFC says that header lines should end
in 0x0D 0x0A, ie "\r\n"; however, if your script runs on a
Windows server, it may automatically expand "\n" to "\r\n"
anyway.