PHP邮件停止在localhost站点上使用Gmail

时间:2016-02-25 17:05:11

标签: php email

我开发了一个php解决方案,用gmail发送邮件。它工作正常,直到昨天,但今天我还没能发送带有实现功能的邮件。

sendmail.ini配置:

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=25
smtp_ssl=auto
error_logfile=error.log
auth_username=xxx@gmail.com
auth_password=xxx
pop3_server=
pop3_username=
pop3_password=
force_sender=xxxs@gmail.com
force_recipient=
hostname=

这是我发送邮件的PHP代码的一部分

        $mail="xxn@xxx.com";
        $titulo="title";
        $message='Message';
        $header="From: Sender <xxx@gmail.com>\r\n";
        $bool=mail($mail,$titulo,$message,$header);

0 个答案:

没有答案