|
|
 |
 |
 |
mainResponder.members.validMailAddress
Invalid email addresses can cause havoc if a bulletin is sent from a Manila site. Manila does not check email addresses for validaity, this patch adds a strict check fo the semantics of an email address, the address may still be invalid. It depends on, and checks the existence of a script within bayly.root.
| on validMailAddress (mailaddress) //scriptErrors if invalid |
| |
if defined (string.isValidEmailAddress) //03/01/27, 13:37:37 by DAB |
| |
string.isValidEmailAddress (mailaddress) |
| |
scriptError ("Can't send email because the address, " + mailaddress + " is not a valid email address.") |
| |
if not (mailaddress contains "@") |
| |
local (domain = string.nthfield (mailaddress, '@', 2)) |
| |
if not (domain contains ".") |
Relative to Frontier version 9.7b10
|