+ Reply to Thread
Results 1 to 5 of 5

Thread: TARGET_EMAIL not limiting recipients

  1. #1
    Join Date
    May 2006
    Posts
    5

    Default TARGET_EMAIL not limiting recipients

    Maybe I am not understanding how this should work, but I thought $TARGET_EMAIL was supposed to limit the domains to which formmail emails could be sent.

    Using 8.24, I am able to send a form to anyone. The $TARGET_EMAIL settings make no impact. I can set them to bob@spam.org and then send an email with recipient as my own email, and it goes through no problem

    Am I missing something? Could this be a bug? How would I debug?

    With the following settings, if I set my recipients in my form to bill@company2.com but have the following formmail settings, I still receive email submissions via the form.
    So I allow company.com and bill@company1.com, but I send the form results to bill@company2.com and it works.

    $TARGET_EMAIL = array(EMAIL_NAME."@company\.com$",
    "^bill@company1\.com$");

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

    Default Re: TARGET_EMAIL not limiting recipients

    Hi,

    No, I don't there's a bug in this area.

    However, you've obviously tested it so something is going on.

    If you subscribe for support, and it turns out to be a bug, we'll refund your money.

    I don't think we'll be finding a bug in FormMail, though.

    In any case, you get the problem solved.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jul 2007
    Posts
    35

    Default Re: TARGET_EMAIL not limiting recipients

    I'm having the same result. A simple 1 text field form asking for an email address with the recipients defined in the ini file.

    I can send email to any address and i can even leave TARGET_EMAIL as '' (nothing) and all i get is a warning and the email is still sent to the recipient i defined in the ini file.

    This is the warning:
    The following potential problems were found in your configuration:
    Warning: Your TARGET_EMAIL pattern "" is missing a ^ at the beginning.
    Warning: Your TARGET_EMAIL pattern "" is missing a $ at the end.

    These are not necessarily errors, but you should review the documentation inside formmail.php. If you are sure your configuration is correct you can disable the above messages by changing the CONFIG_CHECK settings.

    Is the ini file "recipients" field supposed to override the target emails?
    Last edited by Maverick; 18-Sep-2011 at 11:45 PM.

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

    Default Re: TARGET_EMAIL not limiting recipients

    Hi,

    If you're using an INI file, then you are correct to clear out the value of $TARGET_EMAIL.

    The right way to do this is:
    HTML Code:
    $TARGET_EMAIL = array();
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Jul 2007
    Posts
    35

    Default Re: TARGET_EMAIL not limiting recipients

    Ok thanks for clarifying Russel.

    It did seem a bit redundant however since i read that the setting was mandatory i have always set both.

+ 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. Selectable Recipients?
    By clicker in forum FormMail Subscription Support
    Replies: 3
    Last Post: 08-Apr-2004, 11:18 AM
  2. no valid recipients were specified.
    By SonSon in forum FormMail Subscription Support
    Replies: 3
    Last Post: 08-Apr-2004, 08:27 AM
  3. no Action or recipients
    By Lars Arvoe in forum FormMail Subscription Support
    Replies: 7
    Last Post: 05-Apr-2004, 08:13 AM
  4. recipients error
    By mike.2004 in forum FormMail Subscription Support
    Replies: 3
    Last Post: 30-Mar-2004, 11:36 PM
  5. No valid recipients
    By Oktopuz in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Feb-2004, 06:48 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