Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Form mail implementation problem

  1. #1
    Join Date
    Dec 2008
    Posts
    5

    Default Form mail implementation problem

    Can anybody help me?

    Hi,

    Iím trying to set up the mail form program from http://www.tectite.com.
    I followed their istructions but obviuosly Iím doing something wrong.
    This is what I changed in the pgm. and moved it to my website.
    My site has: rootfolder/my.host/cgi-bin/formail.php
    My formmail.html in in my.host

    They sugest to do a test, but this test doesnít work.
    http://www.yourhost.com/formmail.php?testalert=1

    What am I doing wrong? What is the extension for the formail program, php or txt?

    Iíll appreciate your help!!

    Thank you. Carlos

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

    Default Re: Form mail implementation problem

    They sugest to do a test, but this test doesnít work.
    http://www.yourhost.com/formmail.php?testalert=1
    did u replace "www.yourhost.com" with ur actual domain name?

  3. #3
    Join Date
    Dec 2008
    Posts
    5

    Default Re: Form mail implementation problem

    Yes, i did replace it with my actual site.
    carlos

  4. #4
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Form mail implementation problem

    Hi,

    You have the script in your cgi-bin, that's one reason why the testalert doesn't work (the url is wrong. The suggested url for testalert assumes the script is in the root.) However, you should move the script out of the cgi-bin, into the root or some other folder (besides cgi-bin) and run testalert again. The cgi-bin is for perl and other cgi scripts.

    Tectite's formmaiil must have the .php extension.

    ginger

  5. #5
    Join Date
    Dec 2008
    Posts
    5

    Default Re: Form mail implementation problem

    Dear Ginger:
    Thanks for your help. I was able to run the alert and this is the msg I get:

    ďTest message sent. Check your email.Ē But there is no email in myhost.com webmaster.

    Also a ran a test with the form and this is the msg:
    ď
    An error occurred while processing the form .
    The staff at
    myhost.com
    have been alerted to the error .
    myhost.com apologizes for any inconvenience this error may have caused.Ē

    But again, no email in myhost.com webmaster.

    In my html page I have:
    <form method="post" action="myhost.com/formmail.php" name="SampleForm">
    Does the problem has to do with: name="SampleForm">

    What amíI supposed to put in name=?

    I appreciate your help (or anybody elseís).

    Thanks, Carlos

  6. #6
    Join Date
    Dec 2008
    Posts
    3

    Default Re: Form mail implementation problem

    Hi Carlos,

    In the sample form set the action value:
    <form method="post" action="http://www.myhost.com/formmail.php" name="SampleForm">

    also set recipients:
    <input type="hidden" name="recipients" value="webmaster_AT_MANGLE_myhost.com" />
    Obviously change "_AT_MANGLE_" to whatever define("AT_MANGLE,...") is set to in your formmail.php file.

    You may find this page http://www.tectite.com/fmdoc/creating_forms.php helpful.

    Dave

  7. #7
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Form mail implementation problem

    What am’I supposed to put in name=?
    SampleForm is fine. It really doesn't matter what name you put there, as it doesn't have any effect on whether your form works or not. The name attribute is for identifying the form in javascript functions, etc.

    Is webmaster@yourhost.com the email address you defined for DEF_ALERT? Did you use the configuration wizard or did you just edit the script yourself. As DaveB mentioned, you also have to set the "recipients" field in the form. If everything is correct, but you're just not receiving emails then you need to check out the section of the documentation that deals with not receiving emails and run the test scripts suggested there.

    http://www.tectite.com/fmdoc/emailproblems.php

    ginger

  8. #8
    Join Date
    Dec 2008
    Posts
    5

    Default Re: Form mail implementation problem

    Hi Ginger/Dave:

    Thanks for your patience with me. I follow your suggestions, but I keep getting this error after submitting the form:

    ďAn error occurred while processing the form .
    The staff at [www.myhost].com have been alerted to the error .
    www.[myhost].com apologizes for any inconvenience this error may have caused.Ē


    But the mail is not sent to the server. Note that the msg. does not show form #, it shows a blank, then the period.
    Iím not using the the configuration wizard; Iím doing the edit myself.

    Here is my definitions in the php program:

    define("AT_MANGLE","AT");

    DEF_ALERT","webmasterAT[myhost.com]Ē

    In the html form program I have:
    <input type="hidden" name="recipients" value="webmasterAT@[myhost.com]Ē/>

    Any other idea? Thanks,

    Carlos

  9. #9
    Join Date
    May 2008
    Posts
    1,291

    Default Re: Form mail implementation problem

    You don't need to specify AT in DEF_ALERT. Just go ahead and put your regular address there. the AT Mangle is for use in the html of your form (in the recipients field), as you've done (hopefully without the brackets around your domain name.)

    ginger

  10. #10
    Join Date
    Dec 2008
    Posts
    5

    Default Re: Form mail implementation problem

    Hello Ginger:

    I restarted by downloading the formmail programs (php and html), and now I got a little better: it is giving me this message:

    ďThanks! We've received your information and, if it's appropriate, we'll be in contact with you soon.
    Your form submission was processed by (8.11), available fromwww.tectite.com
    But there was no email sent to my: webmaster@[mycompany.com]; also there is no email when a tested the testalert=1.


    Here are the changes I made in the php program: (mycompany without the brackets):


    $TARGET_EMAIL = array("webmaster@[mycompany]\.com$");
    define("DEF_ALERT","webmaster@[mycompany]\..com");


    In the formsample.html I changed:
    <input type="hidden" name="recipients" value="webmaster@[mycompany].com" />

    What am I missing here?

    Thank you for your help!

    Carlos

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Converting Underscores to Spaces from Form to E-mail
    By Kirk in forum FormMail Subscription Support
    Replies: 1
    Last Post: 01-Dec-2004, 06:20 AM
  2. Creating mail object using Mail::factory ("smtp", ....) and FormMail
    By stingray in forum FormMail Subscription Support
    Replies: 1
    Last Post: 13-Jul-2004, 09:27 PM
  3. Problem with new server sending mail
    By mstookey in forum FormMail Subscription Support
    Replies: 7
    Last Post: 25-Jun-2004, 01:27 AM
  4. Problem with Form Field
    By joe3366 in forum FormMail Subscription Support
    Replies: 5
    Last Post: 13-Jun-2004, 09:02 PM
  5. Form Mail Questions
    By Ramius in forum FormMail Subscription Support
    Replies: 5
    Last Post: 12-Jan-2004, 03:22 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
  •