Results 1 to 10 of 10

Thread: Using formmail with Whois as a hosting company

  1. #1
    Join Date
    Apr 2012
    Posts
    5

    Default Using formmail with Whois as a hosting company

    I recently switch my hosting company to whois.com and ever since have receiving my emails with the wrong "fromEmail" address.

    When I receive an email, it displays the web host it's coming from instead of the actual person's email address (example: julieepu@cp-17.webhostbox.net instead of julieisworking@gmail.com)

    So I can't just hit reply in me email response anymore. I use different hosting companies with the same form and it works fine, so I'm assuming the hosting company is the problem, but I can't cancel my subscription. Anyone know of a workaround for that?

    Here's the form I'm using.


    <form action="http://www.julieisworking.com/formmail.php" method="post" class="contact" enctype="multipart/form-data">
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER" />

    <input type="hidden" name="recipients" value="julieisworking@gmail.com" />
    <input type="hidden" name="good_url" value="http://www.julieisworking.com/sent.html" />
    <input type="hidden" name="bad_url" value="http://www.julieisworking.com/error.html" />
    <input type="hidden" name="replyto" value="julieisworking@gmail.com" />
    <p>To contact me, please use the form below.</p><br />
    </p>

    <input name="realname" type="text" value="Name" OnClick="this.value = '';this.style.color = '#37424A'" />
    <br /><br />

    <input name="EmailAddr" type="text" value="Email (required for replies)" OnClick="this.value = '';this.style.color = '#37424A'" /> <br /><br />
    <input name="subject" type="text" value="Subject" OnClick="this.value = '';this.style.color = '#37424A'" /> <br /><br />

    <textarea name="Comment" cols="3" rows="3" value="comment" OnClick="this.value = '';this.style.color = '#37424A'"></textarea><br />


    <input name="" type="submit" value="Submit" class="btn" />

    </form>

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Using formmail with Whois as a hosting company

    Quote Originally Posted by landshrk View Post
    <input type="hidden" name="replyto" value="julieisworking@gmail.com" />
    not sure why u have this. it means u will always reply to yourself!

    wot u want is the replyto field to be derived from the EmailAddr field

    remove the above hidden field and replace with:
    HTML Code:
    <input type="hidden" name="derive_fields" value="replyto=EmailAddr" />
    if u already have a derive_fields field, u need to append the value (u can't have two fields with the same name)

  3. #3
    Join Date
    Apr 2012
    Posts
    5

    Default Re: Using formmail with Whois as a hosting company

    I added that line<input type="hidden" name="replyto" value="julieisworking@gmail.com" />after reading a post on Tectile, thinking it would help, but it didn't change anything.

    The problem is that I need to change my input name from "EmailAddr" to "email" so that the email client will recognize that it is an email, but when I change it to that, it give me an error page and it doesn't go thru. I use the "email" input name on a different host and have no problem. Not sure what's happening here.

    <input name="EmailAddr" type="text" value="Email (required for replies)" OnClick="this.value = '';this.style.color = '#37424A'" /> <br /><br />

    Thanks for the help!

  4. #4
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Using formmail with Whois as a hosting company

    Quote Originally Posted by landshrk View Post
    The problem is that I need to change my input name from "EmailAddr" to "email" so that the email client will recognize that it is an email, but when I change it to that, it give me an error page and it doesn't go thru. I use the "email" input name on a different host and have no problem. Not sure what's happening here.
    that's easy:
    HTML Code:
    <input type="hidden" name="derive_fields" value="email=EmailAddr,replyto=EmailAddr" />

  5. #5
    Join Date
    Apr 2012
    Posts
    5

    Default Re: Using formmail with Whois as a hosting company

    When I changed it with

    <input type="hidden" name="derive_fields" value="email=EmailAddr,replyto=EmailAddr" />

    I got an error. When I removed it, it worked fine.
    Doesn't make any sense. That host just doesn't like the "email" value no matter what!
    I might have to throw in the towel and go with a different company even though it's been prepaid for a year.

    Thanks for all your help crabtree

  6. #6
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Using formmail with Whois as a hosting company

    i reckon ur pretty close, so don't give up yet

    the key to solving any problem is the error message. what is it?

    just "i get an error" provides no information about how to solve the proiblem.

    alos, post the URL for ur form's page so we can check it online

  7. #7
    Join Date
    Apr 2012
    Posts
    5

    Default Re: Using formmail with Whois as a hosting company

    The error email I get says:

    The following error occurred in FormMail :
    mail_failed
    **********
    Error=Failed to send email

    and I get directly to my error page I created from my website (http://www.julieisworking.com/error.html)

    My url is http://julieisworking.com/contact.html but I switched it back now so it wouldn't be broken.

    The email I receive when it works shows:
    From: julieepu@cp-17.webhostbox.net

    email:
    realname: Julie LastName
    EmailAddr: atari77@yahoo.com
    Comment: ddd

    As you can see the email field at the name is missing the email, and that is why the return email is julieepu@cp-17.webhostbox.net as opposed to atari77@yahoo.com
    Last edited by landshrk; 12-Apr-2012 at 12:37 PM.

  8. #8
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Using formmail with Whois as a hosting company

    ok, so the form is all working, except u cannot hit reply to the person, right?

    the solution is to do wot i mentioned first up:

    HTML Code:
    <input type="hidden" name="derive_fields" value="replyto=EmailAddr" />
    if that causes a problem, make a copy of ur form for testing with that code in there (e.g. "contact-test.html") so we can work with it

  9. #9
    Join Date
    Apr 2012
    Posts
    5

    Default Re: Using formmail with Whois as a hosting company

    Still didn't work. I set up a page for testing.

    http://julieisworking.com/contact-test.html

    I could even change the email address to anything you'd if you'd like to see the email.

    I can't thank you enough for your time and patience.

  10. #10
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Using formmail with Whois as a hosting company

    i just suybmitted ur test form.

    in the email u should have a reply-to address.

    if not, look at the email source and look in the headers

    send me a private message with the headers (don't post them here coz it has my email address and other private info in it)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 1&1 hosting - formmail ini file problem SOLVED
    By canjayar in forum Your Suggestions
    Replies: 4
    Last Post: 03-Sep-2010, 12:41 AM
  2. 1&1 hosting - formmail ini file problem
    By canjayar in forum Your Suggestions
    Replies: 0
    Last Post: 26-Aug-2010, 02:42 PM
  3. using formmail on multiple websites shared hosting
    By jm0825 in forum Community Support
    Replies: 1
    Last Post: 10-Aug-2010, 06:45 AM
  4. How To Pick a Good PHP Hosting Company
    By russellr in forum FormMail Subscription Support
    Replies: 0
    Last Post: 09-Mar-2005, 10:14 PM
  5. How To Pick a Good Hosting Company
    By russellr in forum FormMailEncoder/Decoder
    Replies: 0
    Last Post: 09-Mar-2005, 10:14 PM

Tags for this Thread

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
  •