I am trying to send emails using yii2 swiftmailer class , but my emails are stored in @runtime/mail folder .
Mail configuration looks like :
'mail' => [ 'class' => 'yii\swiftmailer\Mailer', ],
I am using this snippet to send email:
Yii::$app->mail->compose('contact/html') ->setFrom('email@example.com') ->setTo("firstname.lastname@example.org") ->setSubject("tedst") ->send();
How can I actually recive emails in my inbox in a valid email address?