You are here: Re: mail() Getting An Email To Go Through « PHP Programming Language « IT news, forums, messages
Re: mail() Getting An Email To Go Through

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация