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:
will match "johnasmith", "johnbsmith", ..., as well as "john.smith"
Whereas this pattern:
will only match "john.smith".
Bookmarks