G
G
Ghost26922018-02-27 20:41:10
Yii
Ghost2692, 2018-02-27 20:41:10

Can I somehow add List-Unsubscribe to yii2?

Is sending email

Yii::$app->mailer->compose()
    ->setFrom('[email protected]')
    ->setTo('[email protected]')
    ->setSubject('Тема сообщения')
    ->setTextBody('Текст сообщения')
    ->setHtmlBody('<b>текст сообщения в формате HTML</b>')
    ->send();

How can I add List-Unsubscribe or List-Subscribe to a message?
As it is in the example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Ghost2692, 2018-03-02
@Ghost2692

$headers->addHeader('List-Unsubscribe', '<'.$unsubscribeLink.'>');
More at www.yiiframework.com/doc-2.0/yii-swiftmailer-messa...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question