You are here

static function Messaging_Mail_Method::format_from in Messaging 7

Format from name and address

1 call to Messaging_Mail_Method::format_from()
Messaging_Mail_Method::mail_params in messaging_mail/messaging_mail.inc
Prepare from address and mail headers

File

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

Class

Messaging_Mail_Method
Base class for mail sending methods

Code

static function format_from($name, $mail) {
  $tokens = array(
    '[name]' => $name,
    '[mail]' => $mail,
  );
  return strtr(variable_get('messaging_mail_sender_format', '[name] <[mail]>'), $tokens);
}