80090
发一下邮件配置 的代码
回帖数 1
阅读数 2656
发表时间 2011-04-14 10:39:37
配置文件具体路径参考官方网站的帖子
这里只发 config 修改的代码
<?php
$config->mail->turnon = true; // trun on email feature or not.
$config->mail->fromAddress = 'pms@mbni.com'; // 发送邮箱的地址.
$config->mail->fromName = 'PMS_BugManagement'; // 邮箱名可以随意写,不要写中文.
$config->mail->mta = 'smtp'; // phpmail|sendmail|smtp|gmail 我用smtp
/* 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 = '10.0.0.240'; // smtp 服务器.
$config->mail->smtp->port = '25'; // smtp服务器端口.
$config->mail->smtp->username = 'pms'; // 邮箱用户名,不行的换成pms@mbni.com
$config->mail->smtp->password = '123456'; // 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 = ""; // GMAIL username
$config->mail->gmail->password = ""; // GMAIL password
}
?>
这里只发 config 修改的代码
<?php
$config->mail->turnon = true; // trun on email feature or not.
$config->mail->fromAddress = 'pms@mbni.com'; // 发送邮箱的地址.
$config->mail->fromName = 'PMS_BugManagement'; // 邮箱名可以随意写,不要写中文.
$config->mail->mta = 'smtp'; // phpmail|sendmail|smtp|gmail 我用smtp
/* 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 = '10.0.0.240'; // smtp 服务器.
$config->mail->smtp->port = '25'; // smtp服务器端口.
$config->mail->smtp->username = 'pms'; // 邮箱用户名,不行的换成pms@mbni.com
$config->mail->smtp->password = '123456'; // 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 = ""; // GMAIL username
$config->mail->gmail->password = ""; // GMAIL password
}
?>
联系我们
联系人
魏中显/高级客户经理
电话(微信)
18561939726
QQ号码
1746749398
联系邮箱
weizhongxian@chandao.com

相关帖子
梦中梦 | 最后回帖 2021-12-10 16:32 王春生
zhuxw | 最后回帖 2023-05-15 13:05 王林
范杰 | 最后回帖 2020-03-17 08:20 禅道-李锡碧
Roby.Ruan | 最后回帖 2017-06-20 17:08 石洋洋
周杰 | 最后回帖 2017-10-18 13:57 王春生
爱笑的海豚 | 最后回帖 2024-03-01 08:30 王林



精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


