Answer the question
In order to leave comments, you need to log in
How to send a list-unsubscribe header in Yii2 when sending a message?
There is a code like this:
Yii::$app->mailer->compose('emailConfirm', ['user' => $user, 'info' => $this])
->setFrom(['[email protected]'])
->setTo($this->email)
->setSubject('SUBJECT')
->send();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question