You are here

function Messaging_Method_Mail::get_user_address in Messaging 6.4

Get address for user account

File

messaging_mail/messaging_method_mail.class.inc, line 20
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Method_Mail
Base class for mail sending methods

Code

function get_user_address($account) {
  $account = messaging_user_object($account);
  return $account->uid && $account->mail ? $account->mail : NULL;
}