<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Totti的部落格]]></title> 
<link>https://iam.ittot.com/index.php</link> 
<description><![CDATA[记录我的生活，收集我的收集]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Totti的部落格]]></copyright>
<item>
<link>https://iam.ittot.com/read.php/.htm</link>
<title><![CDATA[discuz 6.0 smtp发信不成功的解决方案]]></title> 
<author>Totti &lt;totti5116@163.com&gt;</author>
<category><![CDATA[收集]]></category>
<pubDate>Fri, 22 May 2009 01:48:52 +0000</pubDate> 
<guid>https://iam.ittot.com/read.php/.htm</guid> 
<description>
<![CDATA[ 
	原因：当smtp服务器反应慢或者网络比较慢时，DZ在未收到smtp服务器的回应之前就过早地把连接关闭掉，于是smtp服务器就弃掉了邮件，出现邮件被吞掉的假象。这种现象在smtp服务器及网络速度都较快时是不会出现，邮件能正常送出。<br/>但为什么会过早地关掉连接呢？因为这是一个BUG，而且翻查后发现，这个BUG原来从旧版本一直沿袭至今。修补办法如下：<br/><br/>打开include&#92;sendmail.inc.php文件<br/>找到fputs($fp, "QUIT&#92;r&#92;n");这一行<br/>在这一行之前插入如下代码：<br/><br/><div class="code">$lastmessage = fgets($fp, 512);<br/>if(substr($lastmessage, 0, 3) != 250) &#123;<br/>$errorlog(&#039;SMTP&#039;, &quot;($mail&#91;server&#93;mail&#91;port&#93;) DATA - $lastmessage&quot;, 0);<br/>&#125;</div><br/><br/>经修正后，DZ会等待smtp服务器的正式回应后才会把连接关闭掉，保证了邮件正常发送。<br/><br/>转载自：<br/><a href="http://www.discuz.net/thread-727394-1-1.html" target="_blank">http://www.discuz.net/thread-727394-1-1.html</a>
]]>
</description>
</item><item>
<link>https://iam.ittot.com/read.php/.htm#blogcomment</link>
<title><![CDATA[[评论] discuz 6.0 smtp发信不成功的解决方案]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://iam.ittot.com/read.php/.htm#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>