Advertisement
fahmihilmansyah

setting email yii2

Aug 10th, 2018
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. /* begin Setting Email from gmail*/
  2.          'mailer' => [
  3.              'class' => 'yii\swiftmailer\Mailer',
  4.              'useFileTransport' => false,
  5.              'transport' => [
  6.                  'class' => 'Swift_SmtpTransport',
  7.                  'host' => 'smtp.gmail.com',
  8.                  'username' => 'yourmail@gmail.com',
  9.                  'password' => 'yourpassword',
  10.                  'port' => '465',
  11.                  'encryption' => 'ssl',
  12.                  'streamOptions' => [
  13.                      'ssl' => [
  14.                          'allow_self_signed' => true,
  15.                          'verify_peer' => false,
  16.                          'verify_peer_name' => false,
  17.                      ],
  18.                  ],
  19.              ]
  20.          ],
  21.         /* end Setting Email from gmail*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement