faqts : Computers : Programming : Languages : PHP : Common Problems : Email

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 10 people (20%) answered Yes
Recently 1 of 9 people (11%) answered Yes

Entry

Mail function sending anonymous as sender even after setting proper variables

Dec 11th, 2001 22:46
Yasser Masood, Ripal Kadakia,


Are you adding the headers properly in the mail() tag? Try using a 
varilable like $headers as a container for the headers. You need to 
use "From: you@yourhost.com" to have this header appear in the email. 
Check out more information on:
http://www.php.net/manual/en/ref.mail.php