| 
 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] 
 |