gmail SMTP服务器设置

时间:2015-06-17 14:39:16

标签: php email smtp gmail

无法收到此电子邮件,也不知道为什么。我尝试将端口切换到587和TLS。

<?php
// SMTP Server Settings
$config['smtp_host']            = 'ssl://smtp.gmail.com';       // eg.: smtp.mandrillapp.com
$config['smtp_port']            = 465;                          // eg.: 587
$config['smtp_user']            = 'myemail@gmail.com';          // you@gmail.com
$config['smtp_pass']            = 'myPassword';                 // password
$config['smtp_ssl']         = false;                        // should remain false

// Who receive all emails?
$config['send_to']              = 'myemail@gmail.com';          // destination of all emails sent through contact form

// Email Subject
$config['subject']              = 'Contact Form';               // subject of emails you receive
?>

0 个答案:

没有答案