You are here

static function Messaging_Method_Mail::format_from in Messaging 6.4

Format from name and address

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

File

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

Class

Messaging_Method_Mail
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);
}