We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config 'components' => [ 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'transport' => [ 'class' => 'Swift_SmtpTransport', 'host' => 'smtp.send-box.ru', 'username' => '[email protected]', 'password' => 'password', 'port' => '587', 'encryption' => 'tls', ], ],
'components'
Yii::$app->mailer->compose() ->setFrom('[email protected]') ->setTo('[email protected]') ->setSubject('Тема сообщения') ->setTextBody('Текст сообщения') ->setHtmlBody('<b>текст сообщения в формате HTML</b>') ->send();
code return true witout errors (when config has errors) mail not send Why?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
config
'components'
=> ['mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.send-box.ru',
'username' => '[email protected]',
'password' => 'password',
'port' => '587',
'encryption' => 'tls',
],
],
code return true witout errors (when config has errors)
mail not send
Why?
The text was updated successfully, but these errors were encountered: