Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail()...From option

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hello,

Does anyone know how to make the "from" option of the
mail() function display a name instead of an email address?

Thanks a lot to the one who will respond.
 
put

&quot;FROM: Webmaster <webmaster@somedomain.com>&quot; in the headers (4th param) Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Hello Anikin,

As you said I did this: mail($email , &quot;$sub&quot;, $content , &quot;from: toto <toto@toto.com>&quot;);

But the email address is displayed again in outlook.

Any idea?
 
well,

i just did this:
mail(&quot;hugo@mni.pt&quot;,&quot;teste&quot;,&quot;BLA BLA&quot;,&quot;FROM: Hugo Dias <hugo@mni.pt>&quot;);
and worked just fine.

Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top