compose() public method

Compose a new mail message, this will first flush existing mailer objects
public compose ( string $subject, string $body ) : Mail
$subject string The subject of the mail
$body string The HTML body of the mail message.
return Mail
Example #1
0
 public function testRealdSendMailError()
 {
     $mail = new Mail();
     $this->assertFalse($mail->compose('foobar', 'phpunit')->address('*****@*****.**')->send());
     $this->assertFalse(empty($mail->getError()));
 }