function mail_logger_parse_email in Mail Logger 6
Same name and namespace in other branches
- 7 mail_logger.module \mail_logger_parse_email()
Return just the e-mail part of an address, which might be something like "John Doe <john.doe@example.com>".
1 call to mail_logger_parse_email()
- mail_logger_email_user in ./
mail_logger.module - Load a user associated with a specific e-mail.
File
- ./
mail_logger.module, line 303 - Mail Logger module logs all outgoing mail that passes through the drupal_mail function.
Code
function mail_logger_parse_email($email) {
return preg_match('/^(?:.*?<)?(.*?)(?:>|$)/', $email, $matches) ? $matches[1] : '';
}