Results 1 to 6 of 6

Thread: mail_options, Exclude statement (and maybe their relation to Condition statements)

  1. #1
    Join Date
    Jul 2007
    Posts
    23

    Question mail_options, Exclude statement (and maybe their relation to Condition statements)

    Hello,

    How good is this program.

    My questions relates to mail_options and more specifically excluding certain fields and their values from being sent in the email.

    I have a dummy form setup with 6 fields in it 3 info fields (email, realname and message) and 3 working checks as a test (diff methods of spam control). These 3 test fields are called: bananas, meow and check

    So what I want to do is:
    - include email, realname and message so that they are sent to me
    - exclude bananas, meow and check so that they are not sent to me.

    My code from the .ini file for mail_options is as follows:

    mail_options = "AlwaysList,Exclude=bananas;meow;check,KeepLines,NoEmpty"


    The info I get in the email is:
    email: blah@blah.com
    realname: blah
    bananas: blah
    meow: blah
    check: blah
    message:

    What I want to get in the email is:
    email: blah@blah.com
    realname: blah
    message: blah blah blah blah blah blah blah

    Is it something relating to the conditions from my .ini file?

    conditions1 = ":@@TEST@realname@Your name@:@TEST@email@Your email address@:@TEST@bananas#=20@ten + 10 = ? (alphanumeric only)@"
    conditions2 = ":@@TEST@realname!=email@Your name cannot be the same as your email address@"
    conditions3 = ":##TEST#email~/^[a-z0-9_.]+@[a-z0-9_]+\.([a-z0-9_.]+)*[a-z0-9_.]$/i#Please enter a valid email address#"
    conditions4 = ":@@TEST@meow~/cat/i@Have another look at the picture@"
    conditions5 = ":@@TEST@check@Please confirm the scrambled text in the image@"

    What am I missing?


    Thanks in advance.

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

    Default Re: mail_options, Exclude statement (and maybe their relation to Condition statements)

    mail_options = "AlwaysList,Exclude=bananas;meow;check,KeepLines,NoEmpty"
    that should exlcude feilds bananas meow and check.

    but, theres a known bug which means u cant put mail_options in the INI file (it seems to say u can, but some things wont work). From the FormMail source:

    // NOTE: there is a minor bug here now that we support
    // $FORM_INI_FILE. The INI file is processed at the end
    // so if you set the mail_options below in the INI file they
    // won't get processed here. This means you must set
    // the following mail_options in the HTML form for now.
    // (To be fixed at a later date. RJR 17-Feb-06).
    just move ur mail_options back into ur HTML.

    or, u can use a template (PlainTemplate) then u can control exactly wot gets sent to u

  3. #3
    Join Date
    Jul 2007
    Posts
    23

    Smile Re: mail_options, Exclude statement (and maybe their relation to Condition statements

    You are amazing Crabtree.

    Thanks once again for helping me with a query.

    You know the product so well.

    It works a treat as a hidden field in the form
    <input type="hidden" name="mail_options" value="AlwaysList,Exclude=bananas;meow;check,KeepLines,NoEmpty" />

    Look forward to having that bug fixed - I'm digging the .ini's!!

    Cheers.

    Nick

  4. #4
    Join Date
    Oct 2008
    Location
    Gold Coast Australia
    Posts
    18

    Default Re: mail_options, Exclude statement (and maybe their relation to Condition statements

    Hi,

    Why is there semi colons and commas used in that list?


    <input type="hidden" name="mail_options" value="AlwaysList,Exclude=bananas;meow;check,KeepLines,NoEmpty" />

    regards
    Abby

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

    Default Re: mail_options, Exclude statement (and maybe their relation to Condition statements

    Quote Originally Posted by Abby View Post
    Hi,

    Why is there semi colons and commas used in that list?

    <input type="hidden" name="mail_options" value="AlwaysList,Exclude=bananas;meow;check,KeepLines,NoEmpty" />

    regards
    Abby
    The commas separate the different mail options, and the semi-colons separate the different fields that are to be excluded from the email that's sent.

    The documentation: http://www.tectite.com/fmdoc/creatin...p#mail_options

    ginger

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

    Default Re: mail_options, Exclude statement (and maybe their relation to Condition statements

    ginger knows her (his?) stuff

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Condition - restrict maximum checkboxes
    By tvulucy in forum FormMail Subscription Support
    Replies: 3
    Last Post: 22-Aug-2005, 08:42 PM
  2. mail_options and template problems
    By middric in forum FormMail Subscription Support
    Replies: 1
    Last Post: 09-Jan-2005, 08:29 PM
  3. Exclude Option
    By zeuseason in forum FormMail Subscription Support
    Replies: 2
    Last Post: 16-Sep-2004, 08:32 PM
  4. Help with mail_options and conditions
    By wufpack00 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Jul-2004, 12:49 AM
  5. using Exclude
    By moreview in forum FormMail Subscription Support
    Replies: 5
    Last Post: 28-May-2004, 01:26 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
  •