已解决 SMTP无法连接SMTP主机

<?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

提问者: gg 悬赏:100 日期: 2011-06-30 16:32:36 答案:3 点击:5847

获取技术支持

QQ: 电话:
设置备注
答案列表
2011/06/30
secure要去掉的。25端口不应该设置secure。
2011/07/10
是linux环境吗? 我也遇到同样的问题。。
2011/07/11
现在已经有插件可以去下载了,快去下载啊。