|
Posted by Benjamin Esham on 09/03/06 17:14
Jim Carlock wrote:
> I'm messing with the mail() function trying to get some email through.
>
> I managed to get the email through yesterday, and perhaps the mail server
> is slow delivering.
>
> $sFromAddr = "Some One Else <'someoneelse@example.com'>";
>
> $yResults = mail($sToAddr, $sEmailSubject, $sEmailBody, $sFromAddr);
Your "From" header is malformed. In fact, it's really not a header at all;
the line looks like this:
Some One Else <'someoneelse@example.com'>
when it should look like this:
From: Some One Else <someoneelse@example.com>
So, basically, you need to add the "From: " and take the single quotes out
of the e-mail address. I'm not sure whether this will solve your problem,
but it could certainly be creating issues.
HTH,
--
Benjamin D. Esham
bdesham@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
"Anyone entrusted with power will abuse it if not also animated
with the love of truth and virtue, no matter whether he be a
prince, or one of the people." — Jean de La Fontaine
Navigation:
[Reply to this message]
|