#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    26
    Rep Power
    0
    Is there any way I can specify what the FROM section of the email I send via PHP is supposed to read? Right now, anytime I submit a form through PHP and have an autoresponder sent, the FROM reads my deafult server address. I want to be able to set the FROM to read a name instead. Is there any way to do this???
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Gorakhpur,U.P.,India
    Posts
    24
    Rep Power
    0
    You May Use mail($Recipient,$Message,"FROM : youremail@yourserver.com")

    This will send the message with youremail@yourserver.com as the senders address.

    Hope this solves your problem.



    ------------------
    Anish Modi
    Infotech World
    India
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    26
    Rep Power
    0
    Thanks amodi,

    Your sample fixed the problem!

Similar Threads

  1. How to create HTML email with PHP?
    By bubbapuck in forum PHP Development
    Replies: 4
    Last Post: March 8th, 2004, 06:48 PM
  2. sending a online form to email
    By gintom in forum PHP Development
    Replies: 6
    Last Post: February 16th, 2004, 10:38 AM
  3. sending email + multiple attachments using php
    By gbow in forum PHP Development
    Replies: 6
    Last Post: February 13th, 2004, 09:31 AM
  4. How to email in PHP and keeping periods intact?
    By kyliecoast in forum PHP Development
    Replies: 7
    Last Post: February 9th, 2004, 10:10 PM
  5. Using PHP to email via Exchange
    By Methias in forum PHP Development
    Replies: 1
    Last Post: January 30th, 2004, 10:30 AM

IMN logo majestic logo threadwatch logo seochat tools logo