+ Reply to Thread
Results 1 to 8 of 8

Thread: Emails not received in template

  1. #1
    Join Date
    Nov 2004
    Posts
    25

    Default Emails not received in template

    I am having trouble with getting my template to work. The code for some of the body of the template is

    </tr>
    <tr>
    <td>First Name</td>
    <td><b>$First_Name</b></td>
    <td>Last Name</td>
    <td><b>$Last_Name</b></td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td>Phone Number</td>
    <td><b>$Phone_Number</b></td>
    <td>Best Time to Call</td>
    <td><b>$Time_Preference</b></td>
    <td><b>$am-pm</b></td>
    <td></td>
    </tr>
    <tr>
    <td>E-mail</td>
    <td><b>$email</b></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    </tr>
    <tr>
    <td>Company Name</td>
    <td><b>$Company_Name</b></td>
    <td>Location</td>
    <td><b>$Location</b></td>
    <td></td>
    <td></td>
    </tr>


    thats basically how it goes which resembles your example in the how-to. I then changed formmail.php like 1531 to

    $TEMPLATEURL = $SCHEME.$SERVER."http://www.prj7.com/fibersensysproto/cgi-bin/";

    i have tried many variations of this such as the one below and others. I Figured this is were my problem was since the email was not comming in the table format.

    $TEMPLATEURL = "http://www.prj7.com/fibersensysproto/cgi-bin/";

    the hidden feild in the form is

    <input type="hidden" name="mail_options" value="HTMLTemplate=template.html,TemplateMissing=N/A">

    the name of my template is indeed template.html and it is located in the cgi-bin of the previous address. I get the email still with no errors but it is not in table format it is just the raw data like before as if there was no template to begin with. I would greatly appreciate any help you can give becuase i have tried alot of different things and cant get to the bottom of this problem
    Last edited by Chek; 02-Dec-2004 at 07:21 PM.

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

    Default Re: Emails not received in template

    Hi,

    If you try opening the URL to the template in a browser:
    http://www.prj7.com/fibersensysproto.../template.html

    you see a server error.

    This is probably because your server won't allow HTML documents to be placed in cgi-bin.

    In the instructions for templates we recommend creating a directory to hold your templates. If you follow those instructions, I think you'll make more progress.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Nov 2004
    Posts
    25

    Default Re: Emails not received in template

    geeeezzz ok ok i made a different directory. Somtimes I just put crap were i want hehe. the template is now in

    http://www.prj7.com/fibersensysproto.../template.html

    and it loads too. I have tried both these lines in my formmail.php

    $TEMPLATEURL = "http://www.prj7.com/fibersensysproto/template/";

    $TEMPLATEURL = $SCHEME.$SERVER."http://www.prj7.com/fibersensysproto/template/";

    my hidden feild is the same as before since i did not change the name of the .html file. I still dont get template in my email. Please help me jedi master russel.

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

    Default Re: Emails not received in template

    Hi,

    Now you can load the template, FormMail should be able to too.

    For $TEMPLATEURL, this is now the correct setting:

    PHP Code:
    $TEMPLATEURL "http://www.prj7.com/fibersensysproto/template/"
    Next, if you've got DEF_ALERT set (which you seem to - I tried it), if FormMail needs to tell you about an error you should get it.

    If it's not telling you about an error, then something else is wrong.

    So, what exactly happens now when you submit the form?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Nov 2004
    Posts
    25

    Question Re: Emails not received in template

    Russ,

    Its the same as before when i didnt have a template. I just get the raw data.

    email: blahblah@blah.com
    realname:
    First_Name: chek
    Last_Name: chekinex
    Phone_Number: 888-555-444
    Time_Preference: 12:00
    am-pm: AM
    Company_Name: Fibersen syeyss
    Location: Fort Worth Texas
    Industry: Airport
    Register: Register

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

    data is not in the table on the yahoo and aol addresses i tried... I get no errors though. I have no idea what it could be.

    the info again is
    form: http://www.prj7.com/fibersensysproto/reg.html
    template: http://www.prj7.com/fibersensysproto.../template.html
    formmail.php: $TEMPLATEDIR = "";
    $TEMPLATEURL = "http://www.prj7.com/fibersensysproto/template/";

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

    Default Re: Emails not received in template

    Hi,

    You can only have one field with a particular name. You've tried to use "mail_options" twice:

    Code:
    <input type="hidden" name="mail_options" value="HTMLTemplate=template.html,TemplateMissing=N/A">
    <input type="hidden" name="mail_options" value="FromAddr=xxxxxx@fibersensys.com">
    Replace these two "input" tags with one, like this:

    Code:
    <input type="hidden" name="mail_options"
    value="HTMLTemplate=template.html,TemplateMissing=N/A,FromAddr=xxxxxx@fibersensys.com">
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #7
    Join Date
    Nov 2004
    Posts
    25

    Default Re: Emails not received in template

    As always Russel your the man... After changing that and a couple other things it worked. However even though its getting sent now it just shows up as HTML coding on yahoo . I enabled html and images in its options but still dosent work. I guess I will have to figure out a way to get the emails through the corporate server somehow. Thanks alot im sure ill be posting again

  8. #8
    Join Date
    Nov 2004
    Posts
    25

    Thumbs up Re: Emails not received in template

    This thread also helped to get my template working in case your having line termination troubles

    http://www.tectite.com/vbforums/showthread.php?t=256

+ 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. Not getting emails...
    By Chek in forum FormMail Subscription Support
    Replies: 16
    Last Post: 08-Dec-2004, 12:54 AM
  2. sending me two emails
    By srolls in forum FormMail Subscription Support
    Replies: 2
    Last Post: 21-Sep-2004, 12:15 AM
  3. no emails being sent
    By dunn123 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 13-Sep-2004, 01:19 PM
  4. only two emails every ten minutes?
    By vynsane in forum FormMail Subscription Support
    Replies: 4
    Last Post: 26-May-2004, 10:00 PM
  5. not receiving emails
    By ctpiper in forum FormMail Subscription Support
    Replies: 1
    Last Post: 22-Apr-2004, 10:29 PM

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