Answer the question
In order to leave comments, you need to log in
Yii2, how, using SMTP and IMAP, to put a copy of the letter in sent?
An approximate algorithm has developed in my head ... I put "myself" in a hidden copy.
And after sending by means of IMAP to move this letter? Isn't it difficult? Or is there a better solution?
$message = Yii::$app->mailer->compose()
->setFrom(['[email protected]_ya.ru'])
->setTo(['[email protected]_ya.ru'])
->setBcc('[email protected]_ya.ru')
->setSubject('Пробное письмо');
$message->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