Author Topic: Need help with php coding  (Read 112 times)

pramod

  • Guest
Need help with php coding
« on: February 03, 2012, 12:10:42 AM »
I have a web form which automatically sends me an email the moment someone fills it but the email that i get has a from address @server20.hosthat.com, i need to change that to our domain address as i want to send a copy of this mail to the person filling the form as well.

plintu

  • freelance programmer
  • Expert PHP Helper
  • Senior Member
  • *****
  • Posts: 246
  • Karma: +5/-0
    • View Profile
    • plintu.com
Re: Need help with php coding
« Reply #1 on: February 03, 2012, 01:22:57 AM »
check help files at your host server. usually they have a preferred way to address the from section of the email code.
sometimes it can be "FROM: me@mydomain.com"

or sometimes it has to be just "me@mydomain"

and some places you can do full headers:
PHP Code: [Select]

$headers 
'From: webmaster@example.com' "\r\n" .
    
'Reply-To: webmaster@example.com' "\r\n" .
    
'X-Mailer: PHP/' phpversion();



check if your host has help files and look it up or ask their support to see they will tell you how to address the from section of your php mail script.
Find an affordable programmer, contact me :D