A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/lib/valid_mailaddr


Simul efun: valid_mailaddr - check if a string could be an email address

Synopsis:
	mixed valid_mailaddr(string mailaddr, int silent)

Description:
	It checks if an email address MIGHT be a valid email address by having
	a closer look at the string: There has to be an '@' in it, it scans
	for not allowed characters in it, the part behind the '@' has to be
	a domain, etc. The second argument is optional und indicates to be
	verbose (0 = default) or silent.
	If the given string mailaddr MIGHT be an email address, the mailaddr
	is returned, else 0 is returned.

Return values:
	returns string mailaddr if it might be a valid email address
	returns 0 if it is not a valid email address
	
Example:
	mailaddr = valid_mailaddr(mailaddr);

Note:
	This is a simple validation of the format of the mail address. There
	are no checks via DNS if the domain exists etc.
	Email addresses @nemesis.de are not accepted.

See also:


This page was generated in LPC

Imprint / Impressum