A mailer should mainly support creating and sending [[MessageInterface|mail messages]]. It should
also support composition of the message body through the view rendering mechanism. For example,
php
Yii::$app->mailer->compose('contact/html', ['contactForm' => $form])
->setFrom('from@domain.com')
->setTo($form->email)
->setSubject($form->subject)
->send();