Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: can't use mail_options

  1. #1
    Join Date
    Sep 2009
    Posts
    12

    Default can't use mail_options

    Hi. Everyone

    when ever i put this on my php form and submit, the server never send me the form message.

    <input type="hidden" name="mail_options"value="HTMLTemplate=tp.html,NoPlain,TemplateMissing=N/A,Exclude=realname,CharSet=windows-874" />

    while i remove this line out the message sending to my box normally.
    any idea? after submit botton no errors at all simply said sucess sent message.

    if i didn't put this line the message came to me in plain text normally , but i want it in a html message display. the good_url, bad_url is work fine.
    def_alert working as usual. the TEMPLATEDIR is set properly.

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

    Default Re: can't use mail_options

    Hi,

    You're missing a space between "mail_options" and value.

  3. #3
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    i've try put the space between them
    <input type="hidden" name="mail_options" value="HTMLTemplate=tp.html, NoPlain,TemplateMissing=N/A,Exclude=realname,CharSet=windows-874" />

    still got the problem

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

    Default Re: can't use mail_options

    What is your setting for $TEMPLATEDIR? Did you get it by running testalert and using the path to your document root, then adding the rest of the path to your template directory?

  5. #5
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    my template dir is
    $TEMPLATEDIR = "/home/thai-rr/public_html/template

    and report from test alert is
    DOCUMENT_ROOT: /home/thai-rr/public_html
    SCRIPT_FILENAME: /home/thai-rr/public_html/sales/formmail.php
    PATH_TRANSLATED: -not set-
    REAL_DOCUMENT_ROOT: /home/thai-rr/public_html

    REQUEST_URI was /sales/formmail.php?testalert=1

  6. #6
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: can't use mail_options

    What is the url for your form?

  7. #7
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    http://www.thai-rr.com/sales/order10_review.php
    and submit on order 10 tab to post to the formmail.php

  8. #8
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: can't use mail_options

    my template dir is
    $TEMPLATEDIR = "/home/thai-rr/public_html/template
    Do you have a quote and semi-colon at the end of templatedir?

    $TEMPLATEDIR = "/home/thai-rr/public_html/template";

  9. #9
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    sorry my first port mistaked copy incomplete line. the "; already there

    $TEMPLATEDIR = "/home/thai-rr/public_html/template";

  10. #10
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: can't use mail_options

    Sorry, but I do not see anything apparently wrong. Maybe someone else will.

    Your form is very large (lots of hidden fields) and maybe that is impacting it in some way.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. mail_options issue, and templateurl template issu
    By squeegee in forum Community Support
    Replies: 2
    Last Post: 19-Dec-2006, 11:05 PM
  2. derive_fields for mail_options
    By tvulucy in forum Community Support
    Replies: 2
    Last Post: 07-Sep-2006, 07:45 AM
  3. Error:Some mail_options settings are undefined
    By tsheffie in forum Community Support
    Replies: 1
    Last Post: 09-Jun-2006, 01:42 AM
  4. mail_options and template problems
    By middric in forum FormMail Subscription Support
    Replies: 1
    Last Post: 09-Jan-2005, 08:29 PM
  5. Help with mail_options and conditions
    By wufpack00 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Jul-2004, 12:49 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
  •