+ Reply to Thread
Results 1 to 3 of 3

Thread: autoresponder to email from form

  1. #1
    Join Date
    Jan 2004
    Posts
    2

    Default

    Hello,

    First I want to thank you for the great script. Everything works smooth.

    But I have a question. I wanted to send an automatic mail to the person who fills in something in the form, with some additional information. My autoresponder is set up perfectly. But now I have the following problem: when my mailbox receives the mail, you see the name and emailadress from the person who sents it, but my autoresponder answers to a totally different emailadress. What I think he does is take the realname field, and put the extension of the emailserver behind it. So he answers to something like this: <(Elen)@server1.xenserve.com>

    So the (elen) is the realname with () in front and behind it, and then my mailserver. So, now my question is: is there a way to make my autoresponder answer to the correct emailadress (the one from the person who filled the form in)?

    I really hope you can help me with this.

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

    Default

    Hi rebirth,*

    There're a couple of possibilities here:
    1. It's a security feature of your autoresponder software - because the email doesn't really come from user, the autoresponder is either getting confused or attempting to send it to the machine that actually sent the email (namely, your server). [/*]
    2. The autoresponder is getting confused about the real name inside the*email address.[/*]
    If it's #1, I don't think you're going to solve it easily.

    However, I think it is more like to be #2.* If you can find where FormMail adds the real name to the email address, and remove it, then it might start working.

    Here are the two changes:

    Line 1214:

    Code:
    $res_hdr .= "From: ".$SPECIAL_VALUES["email"]." (".$SPECIAL_VALUES["realname"].")".BODY_LF;
    becomes

    Code:
    $res_hdr .= "From: ".$SPECIAL_VALUES["email"].BODY_LF;
    and line 1246:

    Code:
    $headers = "From: ".$SPECIAL_VALUES["email"]." (".$SPECIAL_VALUES["realname"].")";
    becomes

    Code:
    $headers = "From: ".$SPECIAL_VALUES["email"];
    Please let me know if that makes a difference.
    *

  3. #3
    Join Date
    Jan 2004
    Posts
    2

    Default

    Yes, that was exactly what I needed.

    Thank you very much!!! :D

+ 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. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 09:31 PM
  2. HTML Autoresponder
    By eu4ic in forum FormMail Subscription Support
    Replies: 15
    Last Post: 04-Sep-2004, 11:33 PM
  3. Form Submitted, Redirected, but no email
    By jodmcc in forum FormMail Subscription Support
    Replies: 1
    Last Post: 16-Jun-2004, 12:14 AM
  4. POST form data as well as email
    By zippy in forum FormMail Subscription Support
    Replies: 20
    Last Post: 24-Jan-2004, 05:29 PM
  5. Help trying to set up a form to email and send info to file
    By rridsdale in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-Jan-2004, 03:38 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