Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: can't use mail_options

  1. #11
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    yes, it's wierd. but if i does't us the template it's working fine.
    i've use the older version on this formmail with this setting it work very well, after the host have upgrade the system(still php4) the form broke??
    so i try the lates release but no luck.

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

    Default Re: can't use mail_options

    Maybe you could test using one mail_option at a time, and see if it works with each one individually. If so, you should be able to figure out which one is tripping up the results.

  3. #13
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    i've just put
    <input type="hidden" name="mail_options" value="HTMLTemplate=tp.html"/>

    this is the only option i put in still not working.

  4. #14
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    update issue:
    i've got error now form system message:

    "A message that you sent contained no recipient addresses, and therefore no
    delivery could be attempted."

    seems like formmail.php didn't send the recipient address out.
    i've try set target email to
    $TARGET_EMAIL = array("^user@thai-rr\.com$");
    or
    $TARGET_EMAIL = array(EMAIL_NAME."@thai-rr\.com$");
    both won't work

  5. #15
    Join Date
    Sep 2009
    Posts
    12

    Unhappy Re: can't use mail_options

    issue update:
    now get backup first post when ever i put the tag
    <input type="hidden"name="mail_options"value="HTMLTemplate=tp.html" />

    error mail system as:
    A message that you sent contained no recipient addresses, and therefore no
    delivery could be attempted.

    ------ This is a copy of your message, including all the headers. ------

    Message-Id: <E1MqpEr-0007Wa-Lm@server.com>
    From: myname@email.com

    Date: Thu, 24 Sep 2009 21:24:05 +0700

    with out the tag email get to me normally, with other tag such NoPlain,AlwaysList,TemplateMissing=,CharSet=windows-874 all working fine

  6. #16
    Join Date
    May 2008
    Posts
    1,291

    Default Re: can't use mail_options

    As mentioned previously, you need to put a space between name and value pairs. Also, anytime you use an html template, you need to provide the TemplateMissing attribute, so try this:

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

  7. #17
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    thanks for your reply ginger23
    with
    <input type="hidden" name="mail_options" value="HTMLTemplate=tp.html,TemplateMissing=N/A" />

    no mail response at all. no error.

  8. #18
    Join Date
    May 2008
    Posts
    1,291

    Default Re: can't use mail_options

    Maybe there's a problem with your html mail template, or a conflict with the character encoding. Other than that, I'm out of ideas.

  9. #19
    Join Date
    Sep 2009
    Posts
    12

    Default Re: can't use mail_options

    finally you light me up Ginger. it's all about the template header.
    for the old version simply have html header that is
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=TIS-620" />
    <title>Untitled Document</title>
    </head>
    if i remove those header line out the message came in normally.

    however the email message that arrive my mail box got duplicate sender, subject and the email content(not duplicate 2 email but 1 email got 2 same sender, 2 same subject as well as 2 template result). any idea to fix that

  10. #20
    Join Date
    May 2008
    Posts
    1,291

    Default Re: can't use mail_options

    I don't know if this has anything to do with your particular problem, but you might try changing the following in formmail.php:

    Change:

    Code:
    define("HEAD_CRLF","\r\n");
    ... to:
    Code:
    define("HEAD_CRLF","\n");
    You can also try changing this:
    Code:
    define("BODY_LF","\r\n");
    ... to this:
    Code:
    define("BODY_LF","\n");

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
  •