You are here

function Messaging_Method_Mail::message_prepare in Messaging 6.4

Message default callback: prepare

Decide on queue, log, cron and send options, prepare parameters

File

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

Class

Messaging_Method_Mail
Base class for mail sending methods

Code

function message_prepare($message) {

  // First, decide on queue, log, cron and send options
  parent::message_prepare($message);

  // Build specific mail parameters and store them into the message
  $params = $message
    ->get_params('mail') + $this
    ->default_params();
  $message->params[$this->method] = $this
    ->mail_params($message, $params);
}