谢谢“邮件推广”的帮助。
我本来菜鸟,说有懂起的,望谅解哈。
smtp.php的信息太长,我把最后几行完整地拷出来了:
<?PHP exit;?> 2009-09-10 14:11:45 221.10.5.15 1 /home/do.php?ac=sendmail&rand=1252563100 (smtp.qq.com:25) CONNECT - Unable to connect to the SMTP server
<?PHP exit;?> 2009-09-10 14:12:34 221.10.5.15 2 /home/do.php?ac=sendmail&rand=1252563131 (smtp.qq.com:25) CONNECT - Unable to connect to the SMTP server
<?PHP exit;?> 2009-09-10 14:18:17 221.10.5.15 2 /home/do.php?ac=sendmail&rand=1252563494 (smtp.qq.com:25) CONNECT - Unable to connect to the SMTP server
<?PHP exit;?> 2009-09-10 14:19:58 221.10.5.15 0 /home/do.php?ac=sendmail&rand=1252563591 (smtp.qq.com:25) CONNECT - Unable to connect to the SMTP server
<?PHP exit;?> 2009-09-10 20:17:12 117.136.15.36 1 /home/do.php?ac=sendmail&rand=1252585024 (smtp.gmail.com:587) CONNECT - Unable to connect to the SMTP server
<?PHP exit;?> 2009-09-10 20:30:33 117.136.15.36 1 /home/do.php?ac=sendmail&rand=1252585815 (smtp.gmail.com:587) CONNECT - Unable to connect to the SMTP server
<?PHP exit;?> 2009-09-12 13:38:59 117.136.15.33 1 /home/do.php?ac=sendmail&rand=1252733933 smtp.gmail.com:465 CONNECT -
<?PHP exit;?> 2009-09-12 14:33:26 220.181.61.228 0 /home/do.php?ac=sendmail&rand=1252648566 smtp.gmail.com:465 CONNECT -
<?PHP exit;?> 2009-09-12 14:33:40 220.181.61.228 0 /home/do.php?ac=sendmail&rand=1252648577 smtp.gmail.com:465 CONNECT -
我的source/function_sendmail.php那几行代码是:- $email_from = $from == '' ? '=?'.$_SC['charset'].'?B?'.base64_encode($_SCONFIG['sitename'])."?= <".$_SCONFIG['adminemail'].">" : (preg_match('/^(.+?) \<(.+?)\>$/',$from, $mats) ? '=?'.$_SC['charset'].'?B?'.base64_encode($mats[1])."?= <$mats[2]>" : $from);
- }
-
- $email_to = preg_match('/^(.+?) \<(.+?)\>$/',$toemail, $mats) ? ($mailusername ? '=?'.$_SC['charset'].'?B?'.base64_encode($mats[1])."?= <$mats[2]>" : $mats[2]) : $toemail;;
-
- $email_subject = '=?'.$_SC['charset'].'?B?'.base64_encode(preg_replace("/[\r|\n]/", '', '['.$_SCONFIG['sitename'].'] '.$subject)).'?=';
- $email_message = chunk_split(base64_encode(str_replace("\n", "\r\n", str_replace("\r", "\n", str_replace("\r\n", "\n", str_replace("\n\r", "\r", $message))))));
-
- $headers = "From: $email_from{$maildelimiter}X-Priority: 3{$maildelimiter}X-Mailer: UCENTER_HOME ".X_VER."{$maildelimiter}MIME-Version: 1.0{$maildelimiter}Content-type: text/html; charset=$_SC[charset]{$maildelimiter}Content-Transfer-Encoding: base64{$maildelimiter}";
-
- if($mail['mailsend'] == 1) {
- if(function_exists('mail') && @mail($email_to, $email_subject, $email_message, $headers)) {
- return true;
- }
复制代码 好像都一样的。只是这个文件中没有你的代码第5行那个代码,要加吗,加在哪里?
其实,我关注的,我这个php邮件,与服务器连通没有?为啥没有发出邮件?
请你帮助解决哦。谢谢。 |