SMTP无法连接SMTP主机已解决 悬赏100积分
<?php
$config->mail->turnon = trun; // trun on email feature or not.
$config->mail->fromAddress = 'long.jin@jumple.com'; // The from address.
$config->mail->fromName = 'long.jin'; // The from name.
$config->mail->mta = 'smtp'; // phpmail|sendmail|smtp|gmail
/* SMTP settings. */
if($config->mail->mta == 'smtp')
{
$config->mail->smtp->debug = 2; // Debug level, 0,1,2.
$config->mail->smtp->auth = true; // Need auth or not.
$config->mail->smtp->host = 'smtp.jumple.com'; // The smtp server host address.
$config->mail->smtp->port = '25'; // The smtp server host port.
$config->mail->smtp->secure = 'ssl'; // The type to encode datas, 'ssl' or 'tls' allowed
$config->mail->smtp->username = 'long.jin@jumple.com'; // The smtp user, may be a full email adress.
$config->mail->smtp->password = 'XXXXX'; // 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
}
这个设置有问题吗?总是提示无法连接SMTP主机
禅道版本:2.0
安装包类型:
操作系统:Windows XP
客户端浏览器:IE7
🍟 secure要去掉的。25端口不应该设置secure。
回复
|
📷 是linux环境吗? 我也遇到同样的问题。。
|
石洋洋
2011-07-11 12:48:46
现在已经有插件可以去下载了,快去下载啊。
|