| Current Path : /var/www/html/eform/common/config/ |
| Current File : /var/www/html/eform/common/config/mail-old.php |
<?php
// swift mailer
/*return [
'class' => 'yii\\swiftmailer\\Mailer',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'sandbox.smtp.mailtrap.io',
'username' => 'e1cde01fb4294d',
'password' => '9a32aefea9670e',
'port' => '587',
'encryption' => 'tls'
]
];
*/
// symfonymailer
return [
'class' => yii\symfonymailer\Mailer::class,
'transport' => [
'scheme' => 'smtp',
'host' => 'sandbox.smtp.mailtrap.io',
'username' => '32bd15e83738af',
'password' => '0fa41f6b883ec2',
'port' => 587,
// 'dsn' => 'smtp://e1cde01fb4294d:9a32aefea9670e@sandbox.smtp.mailtrap.io:587',
],
// 'viewPath' => '@common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure transport
// for the mailer to send real emails.
'useFileTransport' => false,
];