This component is registered on each LUYA instance, how to use: php if (Yii::$app->mail->compose('Subject', 'Message body of the Mail'->adress('info@example.com')->send()) { echo "Mail has been sent!"; } else { echo "Error" : Yii::$app->mail->error; } SMTP debug help: swaks -s HOST -p 587 -ehlo localhost -au AUTH_USER -to TO_ADRESSE -tls
Author: Basil Suter (basil@nadar.io)
Inheritance: extends yii\base\Component
Beispiel #1
0
 public function testLayoutWithoutWrapper()
 {
     $mail = new Mail();
     $mail->layout = false;
     $mail->setBody('CONTENT');
     $this->assertEquals('CONTENT', $mail->mailer->Body);
 }