<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>smtp归档 - 布鲁文的蓝色奇想</title>
	<atom:link href="https://www.mrven.com/node/tag/smtp/feed" rel="self" type="application/rss+xml" />
	<link>https://www.mrven.com/node/tag/smtp</link>
	<description>A MRVEN SITE</description>
	<lastBuildDate>Wed, 26 Aug 2009 06:40:49 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>
	<item>
		<title>为PHP的mail()函数配置本地邮件服务器</title>
		<link>https://www.mrven.com/node/501</link>
					<comments>https://www.mrven.com/node/501#comments</comments>
		
		<dc:creator><![CDATA[Ven]]></dc:creator>
		<pubDate>Wed, 26 Aug 2009 06:40:49 +0000</pubDate>
				<category><![CDATA[Web开发]]></category>
		<category><![CDATA[hmailserver]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[smtp]]></category>
		<guid isPermaLink="false">http://www.mrven.com/?p=501</guid>

					<description><![CDATA[<p>mail()这个函数不是拿来就能用的，你需要再php.ini中做一些配置。一种方法是使用外部smtp邮件服务器 [&#8230;]</p>
<p><a href="https://www.mrven.com/node/501">为PHP的mail()函数配置本地邮件服务器</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>mail()这个函数不是拿来就能用的，你需要再php.ini中做一些配置。一种方法是使用外部smtp邮件服务器；另一种方法是在本地配置一个邮件服务器。本文介绍如何利用<a href="http://www.hmailserver.com/" target="_blank">hMailServer</a>软件在本地配置邮件服务器。</p>
<p>hMailServer是一个邮件服务器软件，首先你需要下载并安装它，去<a href="http://www.hmailserver.com/?page=download">这里下载</a>，我下的是5.2版。安装的时候会提示你设置你的邮件服务器密码，记得保存好这个密码。启动hMailServer，输入密码，现在做一些简单的设置，直接照着图做就行了（点小图看大图），稍后解释这么做的目的。</p>
<p><a href="https://www.mrven.com/wp-content/uploads/hmailserver-2.png"><img fetchpriority="high" decoding="async" class="alignnone size-medium wp-image-502" title="hmailserver-2" src="https://www.mrven.com/wp-content/uploads/hmailserver-2-300x220.png" alt="hmailserver-2" width="300" height="220" /></a></p>
<p><a href="https://www.mrven.com/wp-content/uploads/hmailserver-3.PNG"><img decoding="async" class="alignnone size-medium wp-image-503" title="hmailserver-3" src="https://www.mrven.com/wp-content/uploads/hmailserver-3-300x220.PNG" alt="hmailserver-3" width="300" height="220" /></a></p>
<p><a href="https://www.mrven.com/wp-content/uploads/hmailserver-4.PNG"><img decoding="async" class="alignnone size-medium wp-image-504" title="hmailserver-4" src="https://www.mrven.com/wp-content/uploads/hmailserver-4-300x220.PNG" alt="hmailserver-4" width="300" height="220" /></a></p>
<p>第一步指定本地服务器名localhost，这个没什么好说。</p>
<p>第二步，在&#8221;Advanced&gt;&gt;IP Range&gt;&gt;My Computer&#8221;里，把POP3和IMAP前面的勾去掉，因为我们并不想用这个服务器收信，也不打算用IMAP协议；把所有的“Require SMTP authentication”选项都去掉是帮PHP扫清发信的障碍。</p>
<p>第三步，在&#8221;Advanced&gt;&gt;IP Range&gt;&gt;Internet&#8221;中，把SMTP, POP3, IMAP全部去掉，因为我们不想外人使用我们的邮件服务器；同时把“Require SMTP authentication”以加强安全性。</p>
<p>现在本地邮件发送服务器就配置完毕了。最后不要忘记在php.ini中确保以下部分没有被注释掉：</p>
<blockquote><p>[mail function]<br />
; For Win32 only.<br />
smtp = localhost<br />
smtp_port = 25</p>
<p>; For Win32 only.<br />
sendmail_from = user@yourdomail.com</p></blockquote>
<p>sendmail_from虽然可以不用设置，但是为了以防万一，最好设置一个默认值。</p>
<p>现在你就可以在本地自由的使用mail()函数了。但是不要乱发垃圾邮件哦！</p>
<p><a href="https://www.mrven.com/node/501">为PHP的mail()函数配置本地邮件服务器</a>最先出现在<a href="https://www.mrven.com">布鲁文的蓝色奇想</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.mrven.com/node/501/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
