Reply to Re: mail function

Your name:

Reply:


Posted by Bent Stigsen on 06/10/06 02:28

maya wrote:

> I'm learning how to send mail with php...
>
> only thing that mystifies me a bit is I can't get NAME of sender to
> appear in e-mail INBOX under "from"... I only see e-mail address.. I'm
> coming from Java, with Java you can set it up so whatever user puts
> under "name" in the form you can grab and in e-mail INBOX under "from"
> you see sender's name, not e-mail address.. I would like to be able to
> do this with php.. I've looked at various tutorials, and so far can't
> see how you can do this.. thank you..

If you use the mail-function, then there is an example of this in the
manual.
http://dk2.php.net/manual/en/function.mail.php

From "Example 4.":
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";


/Bent

[Back to original 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

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