Hi All,
I am newbie for the yii2. I need a big help from all of you.
I have the signup page, once click on submit i get the error as below,
Below are the code for the common >> config >> main-local.php
‘mailer’ => [
‘class’ => ‘yii\swiftmailer\Mailer’,
‘viewPath’ => ‘@common/mail’,
// send all mails to a file by default. You have to set
// ‘useFileTransport’ to false and configure a transport
// for the mailer to send real emails.
‘useFileTransport’ => false,
‘transport’ => [
‘class’ => ‘Swift_SmtpTransport’,
‘host’ => ‘smtp.mailtrap.io’,
‘username’ => ‘9b3af242d96af3’,
‘password’ => ‘8396741fae50bb’,
‘port’ => ‘2525’,
‘encryption’ => ‘tls’,
],
Appreciate for the advise & solution.
Many Thanks.
YC