Results 1 to 2 of 2

Thread: TARGET_EMAIL question

  1. #1
    Join Date
    Aug 2004
    Posts
    4

    Default TARGET_EMAIL question

    I'm using exact e-mail addresses in this area.
    First question: Is there a limit to the number of e-mail addresses you can put in this area of the script and/or form? I have about 100.
    Second question: Do I have to put each individual address in both the formmail.php file and the form file? I assume so.
    Third question: Some of the e-mail addresses I'm using have more than one 'dot' after the 'at' symbol. Example: me.co.zw or public.lib.in.us. Do I need to use the '\' symbol after each dot or just after the one after the 'at' symbol? Which is right and/or more secure?

    me@public\.lib.in.us or me@public\.lib\.in\.us

    Let me know. Thanks.

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

    Default Re: TARGET_EMAIL question

    Hi,

    First question: Is there a limit to the number of e-mail addresses you can put in this area of the script and/or form? I have about 100
    No limit (other than the finite resources of your computer ). 100 or more will be fine.

    Second question: Do I have to put each individual address in both the formmail.php file and the form file? I assume so.
    Yes. But if you have several from the same domain, and, that domain isn't a general one like "msn.com" or "yahoo.com", you can use the EMAIL_NAME feature as shown to match a number of addresses in one entry in $TARGET_EMAIL.

    Like this:
    PHP Code:
     $TARGET_EMAIL = array(EMAIL_NAME."@rootsoftware\.com$"// millions of addresses at rootsoftware.com
                    
    "^jacksprat@rootsoftware\.com\.au$"// exactly one address
                    
    EMAIL_NAME."@ttmaker\.com$",    // millions
                    
    "^john\.smith@timetabling\.org$",  // exactly one
     
    ); 
    Third question: Some of the e-mail addresses I'm using have more than one 'dot' after the 'at' symbol.
    Put a backslash before each dot anywhere in the email address. It's really not critical but it is more secure.

    Here's the explanation....

    In a pattern (regular expression), "." matches any character, whereas "\." matches only a literal ".". So, this pattern:
    Code:
     
      john.smith
    will match "johnasmith", "johnbsmith", ..., as well as "john.smith"

    Whereas this pattern:
    Code:
     
      john\.smith
    will only match "john.smith".
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Anti-spam question
    By antispam in forum FormMail Subscription Support
    Replies: 1
    Last Post: 03-Mar-2005, 10:06 PM
  2. Newbie question on open_basedir error
    By zenprofit in forum FormMail Subscription Support
    Replies: 14
    Last Post: 14-Feb-2005, 09:35 PM
  3. question about PHP version 4.3.8
    By djgotee in forum FormMail Subscription Support
    Replies: 4
    Last Post: 28-Nov-2004, 11:46 PM
  4. Uploading question
    By tray in forum FormMail Subscription Support
    Replies: 2
    Last Post: 11-Aug-2004, 09:31 PM
  5. at mangle / e-mail question
    By Ibis in forum FormMail Subscription Support
    Replies: 3
    Last Post: 25-Feb-2004, 02:59 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
  •