Jump to content


Photo

changing the "from" part of an email


  • Please log in to reply
3 replies to this topic

#1 irrelevantjoker

irrelevantjoker
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 04 October 2006 - 01:16 AM

hey all,

i have some php code that emails my email address with information about a customer who uses my site,

the emails i get are from "anonymous@etc.etc.com"

is there a way to change the email it's from? and give it a name? so when i get an email it will be from "Tom's Toys<tom@toys.com>", something like that?

#2 brendandonhue

brendandonhue
  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts

Posted 04 October 2006 - 01:21 AM

You can set the From address by changing sendmail_from in php.ini, or by setting a From: header when you call mail().

#3 irrelevantjoker

irrelevantjoker
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 04 October 2006 - 01:28 AM

kk, i used it in the mail() function

quite simple now i know how  ;D

cheers very much

#4 brendandonhue

brendandonhue
  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts

Posted 05 October 2006 - 08:18 PM

No problem :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users