<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to fix issues of sending email in ASP.net 2.0  with localhost Microsoft SMTP service</title>
	<atom:link href="http://lichao.net/eblog/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service-20070770.html/feed" rel="self" type="application/rss+xml" />
	<link>http://lichao.net/eblog/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service-20070770.html</link>
	<description>If you are an IT professional as I am, you would love to live digitally and electronically too.</description>
	<lastBuildDate>Thu, 29 Jul 2010 10:13:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Kaleigh Milsap</title>
		<link>http://lichao.net/eblog/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service-20070770.html/comment-page-1#comment-3583</link>
		<dc:creator>Kaleigh Milsap</dc:creator>
		<pubDate>Tue, 15 Jun 2010 06:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://lichao.net/eblog/2007/07/06/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service/#comment-3583</guid>
		<description>Very well said. ;)</description>
		<content:encoded><![CDATA[<p>Very well said. <img src='http://lichao.net/eblog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WebGuru</title>
		<link>http://lichao.net/eblog/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service-20070770.html/comment-page-1#comment-44</link>
		<dc:creator>WebGuru</dc:creator>
		<pubDate>Fri, 05 Oct 2007 16:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://lichao.net/eblog/2007/07/06/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service/#comment-44</guid>
		<description>I did not get a chance to test your ASP.net yet. But I doubt that your problem might not be about your ASP.net code since your can send out forms to some email addresses. Please double check your SMTP service set up and firewall. To test, you can add the domain name of your problem email address as the alien domain name in your SMTP service. Let me know the testing result.</description>
		<content:encoded><![CDATA[<p>I did not get a chance to test your&nbsp;<a href="http://ASP.net" title="http://ASP. " target="_blank">ASP.net</a> yet. But I doubt that your problem might not be about your&nbsp;<a href="http://ASP.net" title="http://ASP. " target="_blank">ASP.net</a> code since your can send out forms to some email addresses. Please double check your SMTP service set up and firewall. To test, you can add the domain name of your problem email address as the alien domain name in your SMTP service. Let me know the testing result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://lichao.net/eblog/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service-20070770.html/comment-page-1#comment-41</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Thu, 04 Oct 2007 07:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://lichao.net/eblog/2007/07/06/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service/#comment-41</guid>
		<description>msg.Subject = &quot;Web Contact Form&quot;
str_body.Append(&quot;name:&quot; &amp; Request.Form(&quot;name&quot;) &amp; &quot;,&quot; )
str_body.Append(&quot;company:&quot; &amp; Request.Form(&quot;company&quot;) &amp; &quot;,&quot; )
str_body.Append(&quot;email&quot; &amp; Request.Form(&quot;email&quot;))
msg.Body = str_body.ToString
msg.IsBodyHtml = True
	
Dim smtp As New SmtpClient(&quot;127.0.0.1&quot;, &quot;25&quot;)
smtp.Send(msg)
......

1 如果我用类似&quot;xxx@website.com&quot;的邮箱,代码出错;
2 如果我用其他邮箱,比如我已经试过的&quot;xxx@gmail.com&quot;, 或另一个公司的邮箱,一切正常,可以顺利收到form的邮件.

我对.net不太熟悉,以前是用asp的.但现在面临着这个较急的问题,只好在网上请求帮助了. 请帮我判断:可能是什么原因? 如果从以上情况无法确定,那么我怎么去查明原因,检查,或测试? 请尽可能多给我提供一些建议!

谢谢!</description>
		<content:encoded><![CDATA[<p>msg.Subject = &#8220;Web Contact Form&#8221;<br />
str_body.Append(&#8220;name:&#8221; &amp; Request.Form(&#8220;name&#8221;) &amp; &#8220;,&#8221; )<br />
str_body.Append(&#8220;company:&#8221; &amp; Request.Form(&#8220;company&#8221;) &amp; &#8220;,&#8221; )<br />
str_body.Append(&#8220;email&#8221; &amp; Request.Form(&#8220;email&#8221;))<br />
msg.Body = str_body.ToString<br />
msg.IsBodyHtml = True</p>
<p>Dim smtp As New SmtpClient(&#8220;127.0.0.1&#8243;, &#8220;25&#8243;)<br />
smtp.Send(msg)<br />
&#8230;&#8230;</p>
<p>1 如果我用类似&#8221;xxx@website.com&#8221;的邮箱,代码出错;<br />
2 如果我用其他邮箱,比如我已经试过的&#8221;xxx@gmail.com&#8221;, 或另一个公司的邮箱,一切正常,可以顺利收到form的邮件.</p>
<p>我对.net不太熟悉,以前是用asp的.但现在面临着这个较急的问题,只好在网上请求帮助了. 请帮我判断:可能是什么原因? 如果从以上情况无法确定,那么我怎么去查明原因,检查,或测试? 请尽可能多给我提供一些建议!</p>
<p>谢谢!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://lichao.net/eblog/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service-20070770.html/comment-page-1#comment-40</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Thu, 04 Oct 2007 07:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://lichao.net/eblog/2007/07/06/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service/#comment-40</guid>
		<description>你好,

我现在遇到发送邮件方面的困难,希望能得到你的帮助.

我刚开始接受一个网站,是以基本html网页为主,除了一个contact form.原先的设计是把form作为邮件发送到一个网站管理员的信箱.不知什么人设计的vb.net代码,据说以前正常工作.现在的问题是,对于某些邮箱,这个代码一切正常,发送form后可以收到邮件,但对于某些邮箱,就会出现runtime error网页.(令人头疼的是,这些不能正常工作的收件箱正是这个网站公司的邮箱!) 代码不复杂,大概如下:

......
Dim str_body As New StringBuilder
Dim msg As New MailMessage
msg.From = New MailAddress(Request.Form(&quot;email&quot;))

msg.To.Add(New MailAddress(&quot;info@website.com&quot;))   &#039; </description>
		<content:encoded><![CDATA[<p>你好,</p>
<p>我现在遇到发送邮件方面的困难,希望能得到你的帮助.</p>
<p>我刚开始接受一个网站,是以基本html网页为主,除了一个contact form.原先的设计是把form作为邮件发送到一个网站管理员的信箱.不知什么人设计的vb.net代码,据说以前正常工作.现在的问题是,对于某些邮箱,这个代码一切正常,发送form后可以收到邮件,但对于某些邮箱,就会出现runtime error网页.(令人头疼的是,这些不能正常工作的收件箱正是这个网站公司的邮箱!) 代码不复杂,大概如下:</p>
<p>&#8230;&#8230;<br />
Dim str_body As New StringBuilder<br />
Dim msg As New MailMessage<br />
msg.From = New MailAddress(Request.Form(&#8220;email&#8221;))</p>
<p>msg.To.Add(New MailAddress(&#8220;info@website.com&#8221;))   &#8216;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 【超凡博俗 之 数码人生】</title>
		<link>http://lichao.net/eblog/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service-20070770.html/comment-page-1#comment-15</link>
		<dc:creator>【超凡博俗 之 数码人生】</dc:creator>
		<pubDate>Fri, 06 Jul 2007 17:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://lichao.net/eblog/2007/07/06/how-to-fix-issues-of-sending-email-in-aspnet-20-with-localhost-microsoft-smtp-service/#comment-15</guid>
		<description>&lt;p&gt;&lt;strong&gt;怎样快速解决用本地机的SMTP通过ASP.net 2.0来发送电子邮件的几个小麻烦...&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;今天决定将一些老代码升级到ASP.net 2.0，尤其将一些送电子邮件的代码从以前的 System.Web.Mail 和传统的 CDONT 改为用 System.Net.Mail。这篇文章不是具体讲怎么样写代码去实现这个功能，而是讲我今...&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p><strong>怎样快速解决用本地机的SMTP通过ASP.net 2.0来发送电子邮件的几个小麻烦&#8230;</strong></p>
<p>今天决定将一些老代码升级到ASP.net 2.0，尤其将一些送电子邮件的代码从以前的 System.Web.Mail 和传统的 CDONT 改为用&nbsp;<a href="http://System.Net" title="http://System. " target="_blank">System.Net</a>.Mail。这篇文章不是具体讲怎么样写代码去实现这个功能，而是讲我今&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.704 seconds -->
