#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    15
    I have a php3 form handler that puts the form data into a db and sends e-mail notifation to severial different recipants. The script works fine the problem that I am having is that when the script is processed by my host using send mail the senders email is something@myhost not me@mydomain. I would like the recipant to see my domain so they know who the mail is from. Any ideas would be helpful. thanks in advance.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    14
    Rep Power
    0
    Add a header as the fourth argument in your mail() function.

    mail($to,$subject,$message,"From:me@mydomain.com");

    Hope this works

    Hari
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    15
    hari that did the trick. I was leaning towards that after reading the doc, but as usual the doc examples never match what you are trying to do. Thanks Dr. E. L.


Similar Threads

  1. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 17th, 2004, 12:21 AM
  2. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 07:55 AM
  3. mail a form with attachment
    By o1webdawg in forum PHP Development
    Replies: 0
    Last Post: January 18th, 2004, 01:06 PM
  4. mail form with attachment
    By o1webdawg in forum Perl Programming
    Replies: 0
    Last Post: January 18th, 2004, 01:04 PM
  5. form mail with attachment
    By o1webdawg in forum ASP Programming
    Replies: 0
    Last Post: January 18th, 2004, 01:00 PM

IMN logo majestic logo threadwatch logo seochat tools logo