mailer

Yii2 中设置邮箱

[
'sendcloud' => [  
   'class' => 'Swift_SmtpTransport',
   'host' => 'smtpcloud.sohu.com',
   'port' => 25,
   'username' => '',
   'password' => ''
],
'163' => [  
   'class' => 'Swift_SmtpTransport',
   'host' => 'smtp.163.com',
   'encryption' => 'ssl',
   'port' => '465',
   'username' => '',
   'password' => '',// 授权码
],
'aliyun' => [  
    'class' => 'Swift_SmtpTransport',
    'host' => 'smtpdm.aliyun.com',
    'encryption' => 'ssl',
    'port' => '465',
    'username' => '',
    'password' => '',
]
]

王浩冰

继续阅读此作者的更多文章