2

ismailallowed

is_mail_allowed
SYNOPSIS

is_mail_allowed($mail)

DESCRIPTION

is_mail_allowed returns false if $mail is an email address which is forbidden, true if $mail is allowed.

The list of forbidden email addresses is defined by the configuration parameter $blackmaillist in the file includes/config.inc.

global $blackmaillist;

$blackmaillist = array('izend@izend.org', 'webmaster@izend.org', 'keymaster@izend.org');
CODE
  1. function is_mail_allowed($mail) {
  2.     global $blackmaillist;
  3.  
  4.     return !in_array($mail, $blackmaillist);
  5. }
SEE ALSO

ismailinjected, ismailallowed, protectmail

Comments

To add a comment, click here.