The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Setting from: (return/reply email) field using cpanel's formmail

Discussion in 'E-mail Discussions' started by norelidd, Aug 20, 2007.

  1. norelidd

    norelidd Well-Known Member

    Joined:
    Jan 15, 2007
    Messages:
    173
    Likes Received:
    1
    Trophy Points:
    18
    I just replaced a user's buggy contact form script with cpanel's formmail clone script. Her previous script would use the form-filler's email address as the from: field in the email she would get from the script, enabling her to simply reply to the email to contact the form-filler.

    Currently cpanel's formmail clone sends mail as "webmaster@hostname.server.com"

    Can this be changed to use the form-filler's email as the from: field?
     
  2. norelidd

    norelidd Well-Known Member

    Joined:
    Jan 15, 2007
    Messages:
    173
    Likes Received:
    1
    Trophy Points:
    18
    I think I figured it out. THe old formmail had this for the email field

    Code:
    <INPUT NAME="From_Email" TYPE="text" SIZE=32 VALUE="">
    and formmail clone wants

    Code:
    <input type=text name="email"> 
     
  3. scorpio1

    scorpio1 Member

    Joined:
    Oct 16, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    formmail clone sends mail as "webmaster@hostname.server.com"

    Hi, I understand that the 'email' field of the formmail script is designed to receive the email address of the form-filler. But how does one change the 'FROM:' address of the mailed form, which currently defaults to "webmaster@hostname.server.com"?

    i.e., the form get sent to the 'receipient' and the 'email' addresses but the From: field has "webmaster@hostname.server.com" and I cannot see how to modify that. THis is not mentioned in the FormMail documentation as far as I can see.

    Any ideas?

    Thanks
     
Loading...

Share This Page