﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-JAVA FANS-随笔分类-LINUX</title><link>http://www.blogjava.net/wujiaqian/category/14988.html</link><description>一个JAVA忠实爱好者的家园</description><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 17:49:03 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 17:49:03 GMT</pubDate><ttl>60</ttl><item><title>linux下不能正常测试邮箱服务的解决方法</title><link>http://www.blogjava.net/wujiaqian/archive/2006/09/20/70864.html</link><dc:creator>JAVA忠实者</dc:creator><author>JAVA忠实者</author><pubDate>Wed, 20 Sep 2006 09:38:00 GMT</pubDate><guid>http://www.blogjava.net/wujiaqian/archive/2006/09/20/70864.html</guid><wfw:comment>http://www.blogjava.net/wujiaqian/comments/70864.html</wfw:comment><comments>http://www.blogjava.net/wujiaqian/archive/2006/09/20/70864.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/wujiaqian/comments/commentRss/70864.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/wujiaqian/services/trackbacks/70864.html</trackback:ping><description><![CDATA[
		<p>         项目中需要用到检测用户的邮箱，当用户的邮箱里收到邮箱时，发一条短信告诉用户．这个需要在ＷＥＢ页面上需要做的就是检测用户输入的邮箱服务器，邮箱地址，用户名，是否正确，用了以下方法：<br />         Properties props = System.getProperties();<br />          Session session = Session.getDefaultInstance(props, null);<br />          store = session.getStore("pop3");<br />          store.connect(popServer, popUser, popPassword);<br /><br />      但总是报出＂MessagingException＂导常，经查是无法连接到ＰＯＰ３服务器．<br />      开始总是以为是用户输入的信息是错误的，但想想不可能所有用户都有错吧，所以查自己的程序，发现也没有ＢＵＧ．<br />      后来上网上，说linux需要配置ＤＮＳ，看了一下，发现果然没有配置，然后配置了一下ＤＮＳ，ＯＫ了!!<br />      配置ＤＮＳ的方法：<br />         编辑：/etc/resolv.conf<br />                nameserver   IP地址 <br />               nameserver    IP地址<br />         编辑：/etc/host.conf<br />               order hosts,bind</p>
<img src ="http://www.blogjava.net/wujiaqian/aggbug/70864.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/wujiaqian/" target="_blank">JAVA忠实者</a> 2006-09-20 17:38 <a href="http://www.blogjava.net/wujiaqian/archive/2006/09/20/70864.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>