public function AmazonSesSystem::format in Amazon SES 7.2
Same name and namespace in other branches
- 7 includes/amazon_ses.mail.inc \AmazonSesSystem::format()
Concatenate and wrap the e-mail body for plain-text mails.
Overrides DefaultMailSystem::format
File
- includes/
amazon_ses.mail.inc, line 14 - Amazon SES Mail system Used by drupal core system.
Class
- AmazonSesSystem
- Create system which will send mail using amazon ses api.
Code
public function format(array $message) {
// Join the body array into one string.
$message['body'] = implode("\n\n", $message['body']);
$message['body'] = drupal_wrap_mail($message['body']);
return $message;
}