Answer the question
In order to leave comments, you need to log in
How to setup smtp server?
What smtp server can you advise, and help set it up.
For test it will run on openserver
Answer the question
In order to leave comments, you need to log in
For example: Setting up SMTP via Gmail
https://www.youtube.com/watch?v=D-NYmDWiFjU
An example of setting up a config for sending in PHP
# Основная конфигурация почты, Gmail
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => '[email protected]', // E-mail на котором настраивали отправку SMTP
'password' => 'test', // пароль от почты на которой настраивали отправку SMTP
'port' => 587,
'encryption' => 'tls',
],
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question