E
E
Evgeny Milushkin2016-08-26 16:00:50
Yii
Evgeny Milushkin, 2016-08-26 16:00:50

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

Thank you in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question