I just need help setting the auth type in pear mail. This is the array I have currently.. auth is set to true, but I need it to be true and set to LOGIN method. Can anyone help me out with the syntax for this?
$smtp = Mail::factory('smtp', array(
'host' => 'ssl://server.net',
'port' => '465',
'auth' => true,
'timeout' => 20,
'username' => 'theusername',
'password' => 'thepassword'
));
根据https://pear.php.net/manual/en/package.mail.mail.factory.php#9454,您应该将auth
字段设置为"LOGIN"
而不是true
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.