2017-10-13 79 views
0

我只需要帮助设置梨邮件中的auth类型。这是我目前的数组.. auth设置为true,但我需要它是真实的,并设置为LOGIN方法。任何人都可以帮我解决这个问题的语法吗?如何设置梨邮件中的auth方法

$smtp = Mail::factory('smtp', array(
     'host' => 'ssl://server.net', 
     'port' => '465', 
     'auth' => true, 
     'timeout' => 20, 
     'username' => 'theusername', 
     'password' => 'thepassword' 
    )); 

回答