Results 1 to 10 of 10

Thread: Message from ISP with 2-part formmail

  1. #1
    Join Date
    Feb 2006
    Posts
    13

    Default Message from ISP with 2-part formmail

    Hi

    I have set up an HTML template successfully and use it as the second page (order confirmation) in a two page set. Everything works just fine except that as well as as receiving the email I expect, I receive a second email from "anonymous@siteserver.xxx" being my ISP's URL.

    What am I doing that causes this extra message to be sent?

    Ian

    email:
    realname:
    Subject: Online Order From Web Site
    Submit: Click Here to Send Your Order

    ==================================

    REMOTE_HOST=
    REMOTE_ADDR=219.89.10.19
    HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
    REMOTE_USER=

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

    Default Re: Message from ISP with 2-part formmail

    Hi,

    That's a new one!

    My first thought is that you're using your own email address as the submitter of the form and it's some sort of auto response.

    Can I submit the form myself and see what happens?

    Please send me the URL.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Message from ISP with 2-part formmail

    Hi,

    The two emails you're getting with the order details are because you've got "recipients" on both pages.

    In a multi-page form you generally only want "recipients" defined on the last page.

    So, try that first. Make sure you have "recipients" only on your last page.

    If you're still getting the other message then we'll look further into that.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

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

    Default Re: Message from ISP with 2-part formmail

    Hi,

    OK. The problem is that you're using the HTMLTemplate as a confirmation page.

    To do confirmation pages successfully, you need to use a multi-page form sequence. (Sorry, I thought that's what I was looking at.)

    The good news is that it will be easy to convert your HTMLTemplate to being the second page of a multi-page sequence.

    Start by reading the HOW TO guide here: http://www.tectite.com/fmhowto/multiforms.php

    BTW, none of this probably relates to the second email you get from your ISP, but lets get your form working the way you want first, and then we can look at that particular issue.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Feb 2006
    Posts
    13

    Default Re: Message from ISP with 2-part formmail

    Hi

    I've now read that guide and realize that I hadn't grasped the full story. I've made changes adding a second page independant of the template.

    All works now as it should, except that the message from the site is headed:-
    Delivered-To: designamo-com-ian@designamo.com
    From: anonymous@mx1-2.iserve.net.nz
    Date: 1 Mar 2006 16:38:50 +1300
    To: ian@designamo.com
    Subject:

    I'm having trouble seeing how I've mucked up the email, realname and subject fields. The email and realname fields are not displayed in the form either.

    Thanks
    Ian

  6. #6
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Message from ISP with 2-part formmail

    Hi,

    There are few tricks and gotchas with "email", and "realname" because they are special fields.

    On your first page, change their names. Use, say "emailaddr", and "name".

    Make sure everywhere on the first and second page make the name change.

    Then on the second page add this to the form:
    HTML Code:
        <input type="hidden" name="realname" value="$name" />
        <input type="hidden" name="email" value="$emailaddr" />
    That should fix the problem you're having and also handle the user going back to the first page from the second page.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #7
    Join Date
    Feb 2006
    Posts
    13

    Default Re: Message from ISP with 2-part formmail

    Hi Russell

    Thanks, that did the job fixing the email and realname fields. I can't seem to do anything similar with the Subject line in the header though?

    When users go back the links on page one break. As the URL in the browser location panel is still "formmail.php" I take it my set up isn't allowing the form to execute properly?

    Thanks again,
    Ian

  8. #8
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Message from ISP with 2-part formmail

    Hi,

    You have:
    HTML Code:
    <input type="hidden" name="Subject".....
    the correct name is "subject" with a lower-case "s".

    The links problem is quite complex. First, to understand it you need to know what FormMail is doing.

    When you go back, FormMail is opening your HTML document, reading the HTML, make some substitutions, and sending it to the browser.

    The browser sees the URL as ".../bin/formmail.php" (which is what it is - it's not the form's URL), and all the relative links are interpreted against that URL.

    In short, you need to use absolute URLs, because the relative ones, like 'background="images/menu/menu-bg.jpg"' are being loaded by the browser as "http://www.salons.co.nz/bin/images/menu/menu-bg.jpg". Which is clearly not correct.

    Start all URLs (links) with '/' or, better still, "http://www.salons.co.nz/".
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  9. #9
    Join Date
    Feb 2006
    Posts
    13

    Default Re: Message from ISP with 2-part formmail

    Ah! Thanks

    I have corrected the case in "subject" <blush>

    I see what you mean re relative v root relative links. Rather than alter the links as they are part of a site-wide DW template, I've elevated formmail.php to the site root (from /bin) and after adjusting a couple of settings in formmail.php that now works thank you.

    Thanks again
    Ian

  10. #10
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Message from ISP with 2-part formmail

    Hi,

    Well done! That was the other option, and I should have mentioned it first because it's the simpler one.

    I'm glad it's all working!
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. csv writing only part info
    By maxim in forum Community Support
    Replies: 0
    Last Post: 12-Jul-2006, 01:26 AM
  2. Parse error message line 4862 in formmail
    By CWD in forum FormMail Subscription Support
    Replies: 1
    Last Post: 30-Oct-2005, 04:59 AM
  3. FormMail: message is truncated
    By railer in forum FormMail Subscription Support
    Replies: 1
    Last Post: 29-Oct-2005, 12:43 PM
  4. error message on formmail setup
    By ncangler in forum FormMail Subscription Support
    Replies: 1
    Last Post: 25-May-2005, 10:54 PM
  5. FormMail Script Error Message
    By rose in forum FormMail Subscription Support
    Replies: 2
    Last Post: 27-Jun-2004, 04:59 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
  •