Esempio n. 1
0
 /**
  *
  * @return Message 
  */
 private function prepareMessage()
 {
     $message = new Message();
     $message->setFrom($this->from, $this->fromName);
     $message->setMailer($this->mailer);
     return $message;
 }
Esempio n. 2
0
 public function sendTestEmailSmtp($from, $to, $settings)
 {
     $mailer = new SmtpMailer($settings);
     $message = new Message();
     $message->setFrom($from);
     $message->addTo($to);
     $message->setBody('Tatami mail test');
     $message->setMailer($mailer);
     $message->send();
 }