+ Reply to Thread
Results 1 to 4 of 4

Thread: User From Address

  1. #1
    Join Date
    Feb 2005
    Posts
    9

    Default User From Address

    Hi all,

    I'm having problems setting the from address in the email that the user (person that filled in the form) gets.

    This is what they currently get.

    Date: 1 Mar 2005 22:16:51 -0000
    From: root@sid6030.sslaccess.com <-- I would like this to be Arlberg Hotham
    To: USER@DOMAIN.com.au
    Subject: Arlberg Hotham Contact
    X-Trash-Finder: Message trashed, bare CR or LF found in message

    Contact Details ------------------------------
    Name: Michael Egan
    Email: USER@DOMAIN.com.au

    Questions or Comments ------------------------
    test

    This is the code

    <form method="post" action="http://www.arlberghotham.com.au/php/formmail.php" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">

    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">

    <input type="hidden" name="recipients" value="recipient@arlberghotham.com.au" />
    <input type="hidden" name="bcc" value="myaddress@aucomp.com.au,myotheraddress@aucomp.com.au" />

    <input type="hidden" name="subject" value="Contact Request" />
    <input type="hidden" name="mail_options" value="FromAddr=Arlberg@hotham.com.au" />

    <input type="hidden" name="required" value="" />

    <input type="hidden" name="good_url" value="http://www.arlberghotham.com.au/thankyoucontact.htm" />

    <input type="hidden" name="bad_url" value="http://www.arlberghotham.com.au/bad.htm" />

    <input type="hidden" name="mail_options" value="PlainTemplate=contact_user.txt,TemplateMissing=N/A" />

    <input type="hidden" name="autorespond" value="PlainTemplate=contact_user.txt,
    Subject=Arlberg Hotham Contact,TemplateMissing=" />

    <input type="hidden" name="derive_fields" value="email = Email, realname = Name" />


    I did also have this instead of the FromAddr
    <input type="hidden" name="email" value="Arlberg Hotham Booking" />

    But it still was not working???

    Help I'm Stuck

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: User From Address

    Hi,

    You have "mail_options" twice - the latter one overwrites the former:
    Code:
    <input type="hidden" name="mail_options" value="FromAddr=Arlberg@hotham.com.au" />
    <input type="hidden" name="mail_options" value="PlainTemplate=contact_user.txt,TemplateMissing=N/A" />
    Try this instead:
    Code:
    <input type="hidden" name="mail_options" value="FromAddr=Arlberg@hotham.com.au,
    PlainTemplate=contact_user.txt,TemplateMissing=N/A" />
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Feb 2005
    Posts
    9

    Default Re: User From Address

    Thanks for your very fast reply

    <input type="hidden" name="autorespond" value="PlainTemplate=contact_user.txt,
    Subject=Arlberg Hotham Contact,TemplateMissing=" />

    How do i set the from address in the above code so that the email that the person gets (autorespond) has the from address set to ArlbergHotham.

    Thanks for your help

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: User From Address

    Hi,

    The sender for auto responding is set to the $FROM_USER configuration in FormMail.

    So, just set that the way you want.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Conditions for a valid email address
    By bwv in forum FormMail Subscription Support
    Replies: 5
    Last Post: 04-Jul-2005, 09:24 PM
  2. Any update on html user output of selections?
    By jptechnical in forum FormMail Subscription Support
    Replies: 3
    Last Post: 31-Aug-2004, 05:20 AM
  3. Show form results to user
    By cottonslurpy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 02-Aug-2004, 05:59 AM
  4. Redirecting the user
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 31-Jul-2004, 09:59 PM
  5. Don't want to force entering an email address
    By Goji in forum FormMail Subscription Support
    Replies: 10
    Last Post: 22-Jun-2004, 02:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts