<?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: System.Net.Mail How To</title>
	<atom:link href="http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/</link>
	<description>Articles on VB.NET and Software Development Team Leadership</description>
	<pubDate>Sat, 04 Feb 2012 05:21:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: child309</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-1393</link>
		<dc:creator>child309</dc:creator>
		<pubDate>Mon, 14 Sep 2009 01:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-1393</guid>
		<description>@Chris
You can use regular expression to check if the email is in the correct format. Cheers!</description>
		<content:encoded><![CDATA[<p>@Chris<br />
You can use regular expression to check if the email is in the correct format. Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-1379</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 21 Jul 2009 16:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-1379</guid>
		<description>Hello,

I have a question. I am getting my from email address from the database but when the address is not in the correct email format the program stops sending. How can i determine if its in correct format and if it is not  then jump to the next.? Thanks.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I have a question. I am getting my from email address from the database but when the address is not in the correct email format the program stops sending. How can i determine if its in correct format and if it is not  then jump to the next.? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Bleckman</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-1352</link>
		<dc:creator>Joseph Bleckman</dc:creator>
		<pubDate>Mon, 25 May 2009 02:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-1352</guid>
		<description>I'm trying to send an email directly from a Visual Studio 2008 project running on Vista. This means I must use a third party SMTP application, as none comes with Vista. I am using one called Best SMTP Server. It is fully featured and I'm trying to use it to send mail via a gateway, in my case smtp.gmail.com. 

I have enabled POP on my gmail account and am using the code in this article. But nothing happens. I've been getting help from the support people who make Best Server, I've opened a help case with Microsoft in using third party SMTP programs and I'm getting help from my IP provider.

With all that, I still cannot get a simple email sent from my program.

Any suggestions? I'm really losing hope here. Given that .Net is supposed to be webcentric, sending an email from a .Net project would seem to be a level 1 issue. Instead, it's a nightmare.

I wish I could say I was surprised....

JB</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to send an email directly from a Visual Studio 2008 project running on Vista. This means I must use a third party SMTP application, as none comes with Vista. I am using one called Best SMTP Server. It is fully featured and I&#8217;m trying to use it to send mail via a gateway, in my case smtp.gmail.com. </p>
<p>I have enabled POP on my gmail account and am using the code in this article. But nothing happens. I&#8217;ve been getting help from the support people who make Best Server, I&#8217;ve opened a help case with Microsoft in using third party SMTP programs and I&#8217;m getting help from my IP provider.</p>
<p>With all that, I still cannot get a simple email sent from my program.</p>
<p>Any suggestions? I&#8217;m really losing hope here. Given that .Net is supposed to be webcentric, sending an email from a .Net project would seem to be a level 1 issue. Instead, it&#8217;s a nightmare.</p>
<p>I wish I could say I was surprised&#8230;.</p>
<p>JB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahendra</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-1261</link>
		<dc:creator>Mahendra</dc:creator>
		<pubDate>Sun, 07 Dec 2008 08:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-1261</guid>
		<description>I can send through vb code can some body help me in knowing whether the message is read or not 

thanks</description>
		<content:encoded><![CDATA[<p>I can send through vb code can some body help me in knowing whether the message is read or not </p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Susan</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-1145</link>
		<dc:creator>Susan</dc:creator>
		<pubDate>Sun, 29 Jun 2008 06:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-1145</guid>
		<description>&gt; Can you explain me the “UserToken” in the SendAsync method?

Ugh.  What do we put in for a value in "UserToken"????

Without that info...  none of this works at all.</description>
		<content:encoded><![CDATA[<p>&gt; Can you explain me the “UserToken” in the SendAsync method?</p>
<p>Ugh.  What do we put in for a value in &#8220;UserToken&#8221;????</p>
<p>Without that info&#8230;  none of this works at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yadira</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-1004</link>
		<dc:creator>Yadira</dc:creator>
		<pubDate>Tue, 12 Feb 2008 16:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-1004</guid>
		<description>Hi !!

Can you explain me the  "UserToken" in the SendAsync  method?

Thanks !!</description>
		<content:encoded><![CDATA[<p>Hi !!</p>
<p>Can you explain me the  &#8220;UserToken&#8221; in the SendAsync  method?</p>
<p>Thanks !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfrankcarr</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-812</link>
		<dc:creator>jfrankcarr</dc:creator>
		<pubDate>Fri, 26 Oct 2007 14:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-812</guid>
		<description>Thanks Jay. I'm always glad to help.</description>
		<content:encoded><![CDATA[<p>Thanks Jay. I&#8217;m always glad to help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jay</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-811</link>
		<dc:creator>jay</dc:creator>
		<pubDate>Fri, 26 Oct 2007 04:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-811</guid>
		<description>Thanks a lot It's help a lot</description>
		<content:encoded><![CDATA[<p>Thanks a lot It&#8217;s help a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jfrankcarr</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-774</link>
		<dc:creator>jfrankcarr</dc:creator>
		<pubDate>Wed, 17 Oct 2007 13:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-774</guid>
		<description>Hi Irene

Yes. The SmtpClient object has an event called SendCompleted. To use it you would have to declare this object at the module level and add a handler. Here's an example. First the code to initialize the SmtpClient and add the handler:

&lt;pre class="csharpcode"&gt;EmailServer = &lt;span class="kwrd"&gt;New&lt;/span&gt; System.Net.Mail.SmtpClient(EmailServerName)
&lt;span class="kwrd"&gt;AddHandler&lt;/span&gt; EmailServer.SendCompleted, &lt;span class="kwrd"&gt;AddressOf&lt;/span&gt; EmailSendCompleted&lt;/pre&gt;

Now the routine that waits for the SendCompleted event.

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;Private&lt;/span&gt; &lt;span class="kwrd"&gt;Sub&lt;/span&gt; EmailSendCompleted(&lt;span class="kwrd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwrd"&gt;As&lt;/span&gt; &lt;span class="kwrd"&gt;Object&lt;/span&gt;, &lt;span class="kwrd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwrd"&gt;As&lt;/span&gt; System.ComponentModel.AsyncCompletedEventArgs)
    &lt;span class="kwrd"&gt;If&lt;/span&gt; e.&lt;span class="kwrd"&gt;Error&lt;/span&gt; IsNot &lt;span class="kwrd"&gt;Nothing&lt;/span&gt; &lt;span class="kwrd"&gt;OrElse&lt;/span&gt; e.Cancelled &lt;span class="kwrd"&gt;Then&lt;/span&gt;
        &lt;span class="rem"&gt;'do error management &lt;/span&gt;
    &lt;span class="kwrd"&gt;End&lt;/span&gt; &lt;span class="kwrd"&gt;If&lt;/span&gt;
&lt;span class="kwrd"&gt;End&lt;/span&gt; Sub&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Irene</p>
<p>Yes. The SmtpClient object has an event called SendCompleted. To use it you would have to declare this object at the module level and add a handler. Here&#8217;s an example. First the code to initialize the SmtpClient and add the handler:</p>
<pre class="csharpcode">EmailServer = <span class="kwrd">New</span> System.Net.Mail.SmtpClient(EmailServerName)
<span class="kwrd">AddHandler</span> EmailServer.SendCompleted, <span class="kwrd">AddressOf</span> EmailSendCompleted</pre>
<p>Now the routine that waits for the SendCompleted event.</p>
<pre class="csharpcode"><span class="kwrd">Private</span> <span class="kwrd">Sub</span> EmailSendCompleted(<span class="kwrd">ByVal</span> sender <span class="kwrd">As</span> <span class="kwrd">Object</span>, <span class="kwrd">ByVal</span> e <span class="kwrd">As</span> System.ComponentModel.AsyncCompletedEventArgs)
    <span class="kwrd">If</span> e.<span class="kwrd">Error</span> IsNot <span class="kwrd">Nothing</span> <span class="kwrd">OrElse</span> e.Cancelled <span class="kwrd">Then</span>
        <span class="rem">'do error management </span>
    <span class="kwrd">End</span> <span class="kwrd">If</span>
<span class="kwrd">End</span> Sub</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: irene</title>
		<link>http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/comment-page-1/#comment-773</link>
		<dc:creator>irene</dc:creator>
		<pubDate>Wed, 17 Oct 2007 06:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://vbnotebookfor.net/2007/05/27/systemnetmail-how-to/#comment-773</guid>
		<description>Using Sendsync, can I know whether the email has been sent?</description>
		<content:encoded><![CDATA[<p>Using Sendsync, can I know whether the email has been sent?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

