E
E
EvgMul2019-08-16 11:55:10
Yii
EvgMul, 2019-08-16 11:55:10

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();

I can’t figure out how to add the header I need when sending. Tell me please. Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2019-08-16
@EvgMul

Can I somehow add List-Unsubscribe to yii2?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question