通知功能
192
SMTP错误:无法连接到SMTP主机已解决 悬赏5积分
提问者邓奕波
答案数2
阅读数9186
发表时间2011-04-06 11:00:41
<?php
$config->mail->turnon = true; // trun on email feature or not.
$config->mail->fromAddress = 'uinlive@gmail.com'; // The from address.
$config->mail->fromName = 'ui123454321'; // The from name.
$config->mail->mta = 'gmail'; // phpmail|sendmail|smtp|gmail
/* SMTP settings. */
if($config->mail->mta == 'smtp')
{
$config->mail->smtp->debug = 0; // Debug level, 0,1,2.
$config->mail->smtp->auth = true; // Need auth or not.
$config->mail->smtp->host = ''; // The smtp server host address.
$config->mail->smtp->port = ''; // The smtp server host port.
$config->mail->smtp->username = ''; // The smtp user, may be a full email adress.
$config->mail->smtp->password = ''; // The smtp user's password.
}
/* Gmail setting. */
elseif($config->mail->mta == 'gmail')
{
$config->mail->gmail->debug = 0; // Debug level, 0,1,2.
$config->mail->gmail->username = "uinlive@gmail.com"; // GMAIL username
$config->mail->gmail->password = "ui123454321"; // GMAIL password
}
$config->mail->turnon = true; // trun on email feature or not.
$config->mail->fromAddress = 'uinlive@gmail.com'; // The from address.
$config->mail->fromName = 'ui123454321'; // The from name.
$config->mail->mta = 'gmail'; // phpmail|sendmail|smtp|gmail
/* SMTP settings. */
if($config->mail->mta == 'smtp')
{
$config->mail->smtp->debug = 0; // Debug level, 0,1,2.
$config->mail->smtp->auth = true; // Need auth or not.
$config->mail->smtp->host = ''; // The smtp server host address.
$config->mail->smtp->port = ''; // The smtp server host port.
$config->mail->smtp->username = ''; // The smtp user, may be a full email adress.
$config->mail->smtp->password = ''; // The smtp user's password.
}
/* Gmail setting. */
elseif($config->mail->mta == 'gmail')
{
$config->mail->gmail->debug = 0; // Debug level, 0,1,2.
$config->mail->gmail->username = "uinlive@gmail.com"; // GMAIL username
$config->mail->gmail->password = "ui123454321"; // GMAIL password
}
禅道版本:1.4
安装包类型:源码包
操作系统:Other
客户端浏览器:Firefox
答案列表
🍟 现在 gmail服务不太稳定,建议使用国内的smtp服务器吧。
回复
|
🌴 我的一样问题,不管是GMAIL还是内网的SMTP,都没弄成,
|
联系我们
联系人
张淑钧/高级客户经理
电话(微信)
13156280939
QQ号码
2082428410
联系邮箱
zhangshujun@chandao.com