You are here: Re: Problems with headers using mail() function « PHP Programming Language « IT news, forums, messages
Re: Problems with headers using mail() function

Posted by Tim Roberts on 06/15/07 05:57

Spartacus <nospam@nowhere.com> wrote:

>Jerry Stuckle wrote:
>
>> And why are you putting quotes in the from and to headers?
>
>Because they go like this (if you want them to, I believe):
>
>"John Doe" <john@doe.com>
>
>That's a legal email address, isn't it?

Yes, for the header lines in the email message, although the quotes aren't
necessary unless the name has certain special characters, so this is ok
too:
John Doe <john@doe.com>

However, the addresses that get passed as parameters to the "mail" command
are NOT headers in an email message. They are used in the SMTP dialog with
the mail server. The nickname part is not used there.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

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

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