<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>Send E-mail Message with C# or VB.NET</title><link>http://code.msdn.microsoft.com/sendemail/Project/ProjectRss.aspx</link><description>A simple C&amp;#35;&amp;#47;VB.NET code snippet for sending an SMTP-based e-mail message.  It supports multiple recipients but does not support attachments.</description><item><title>NEW POST: Accessing the Class (Public/Private?)</title><link>http://code.msdn.microsoft.com/sendemail/Thread/View.aspx?ThreadId=59</link><description>&lt;div class="wikidoc"&gt;
I found the problem.  Somehow, I got two versions referenced in my source.  I right clicked on the code calling it and it brought up the other version.  It was still Private.  The code is now clean, but now I have to figure out our SMTP server.  Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>cboshdave</author><pubDate>Thu, 14 Feb 2008 21:54:17 GMT</pubDate><guid isPermaLink="false">NEW POST: Accessing the Class (Public/Private?) 20080214P</guid></item><item><title>NEW POST: Accessing the Class (Public/Private?)</title><link>http://code.msdn.microsoft.com/sendemail/Thread/View.aspx?ThreadId=59</link><description>&lt;div class="wikidoc"&gt;
Hmmm.... Yeah, I have done both of those as public.  Public Class and Public Shared Sub.  The exact message is -- 'FlexDupCheck.SendEmail.Private Shared Sub SendMessage(...)' is not accessible in this context because it is 'Private'.&lt;br /&gt;
&lt;/div&gt;</description><author>cboshdave</author><pubDate>Thu, 14 Feb 2008 21:05:32 GMT</pubDate><guid isPermaLink="false">NEW POST: Accessing the Class (Public/Private?) 20080214P</guid></item><item><title>UPDATED RELEASE: Send E-mail (Feb 08, 2008)</title><link>http://code.msdn.microsoft.com/sendemail/Release/ProjectReleases.aspx?ReleaseId=176</link><description>An example in C&amp;#35; anv VB.NET on how to send a simple SMTP-based e-mail message.</description><author></author><pubDate>Thu, 14 Feb 2008 17:32:39 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Send E-mail (Feb 08, 2008) 20080214P</guid></item><item><title>NEW POST: Accessing the Class (Public/Private?)</title><link>http://code.msdn.microsoft.com/sendemail/Thread/View.aspx?ThreadId=59</link><description>&lt;div class="wikidoc"&gt;
Thanks for pointing out that I left the methods set to Private - they should be Public (I'll upload a modified version soon).&lt;br /&gt; &lt;br /&gt;Since you've changed the method to Public and you're still getting the error, make sure that you've also declared your VB class as public.  For example:&lt;br /&gt; &lt;br /&gt; &lt;b&gt;Public&lt;/b&gt; Class SendEmail&lt;br /&gt; &lt;br /&gt;Please let me know if this doesn't resolve your issue.&lt;br /&gt; &lt;br /&gt;&lt;div class="quote"&gt;
 &lt;br /&gt;cboshdave wrote:&lt;br /&gt;I am new to VB so this may be a dumb question.  I setup the Class in its own window and added it to my project.  When I try to call the class.routine as the example indicates, I get an error saying that I cannot call a Private subroutine.  I tried to make it public and still get an error.  I would like to keep it separate for use in other applications.  Thoughts?&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>jbramwell</author><pubDate>Thu, 14 Feb 2008 17:31:21 GMT</pubDate><guid isPermaLink="false">NEW POST: Accessing the Class (Public/Private?) 20080214P</guid></item><item><title>NEW POST: Accessing the Class (Public/Private?)</title><link>http://code.msdn.microsoft.com/sendemail/Thread/View.aspx?ThreadId=59</link><description>&lt;div class="wikidoc"&gt;
I am new to VB so this may be a dumb question.  I setup the Class in its own window and added it to my project.  When I try to call the class.routine as the example indicates, I get an error saying that I cannot call a Private subroutine.  I tried to make it public and still get an error.  I would like to keep it separate for use in other applications.  Thoughts?&lt;br /&gt;
&lt;/div&gt;</description><author>cboshdave</author><pubDate>Thu, 14 Feb 2008 17:23:43 GMT</pubDate><guid isPermaLink="false">NEW POST: Accessing the Class (Public/Private?) 20080214P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Home&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
Send E-mail
&lt;/h1&gt;A simple C&amp;#35;&amp;#47;VB.NET code snippet for sending an SMTP-based e-mail message.  It supports multiple recipients but does not support attachments.
&lt;br /&gt;&lt;h2&gt;
Sending E-mail
&lt;/h2&gt;Sending a quick e-mail message using this code snippet is simple:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Download the source code from the &lt;a href="http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Releases&amp;amp;referringTitle=Home"&gt;Releases&lt;/a&gt; tab.&lt;/li&gt;&lt;li&gt;Copy the C# or VB.NET version of the &lt;b&gt;SendMessage&lt;/b&gt; method to your project.&lt;/li&gt;&lt;li&gt;Modify the &lt;b&gt;Client.Host&lt;/b&gt; property within the &lt;b&gt;SendMessage&lt;/b&gt; method to point to your SMTP server (look for the &amp;quot;TODO&amp;quot; in the source code).&lt;/li&gt;&lt;li&gt;Call the &lt;b&gt;SendMessage&lt;/b&gt; method passing in the appropriate arguments.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Here are a couple of examples:&lt;br /&gt; &lt;br /&gt;&lt;b&gt;C#&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
  // Send a quick e-mail message
  SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, 
     &amp;quot;This is a test message...&amp;quot;,
     &amp;quot;noboday@nowhere.com&amp;quot;,
     &amp;quot;somebody@somewhere.com&amp;quot;, 
     &amp;quot;ccme@somewhere.com&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;VB.NET&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
  ' Send a quick e-mail message
  SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, _
     &amp;quot;This is a test message...&amp;quot;, _
     &amp;quot;noboday@nowhere.com&amp;quot;, _
     &amp;quot;somebody@somewhere.com&amp;quot;, _
     &amp;quot;ccme@somewhere.com&amp;quot;)
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Supported .NET Framework Versions&lt;/b&gt;&lt;br /&gt;  - .NET Framework 2.0&lt;br /&gt;  - .NET Framework 3.0&lt;br /&gt;  - .NET Framework 3.5&lt;br /&gt;
&lt;/div&gt;</description><author>jbramwell</author><pubDate>Wed, 13 Feb 2008 13:01:16 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080213P</guid></item><item><title>UPDATED RELEASE: Send E-mail (Feb 08, 2008)</title><link>http://code.msdn.microsoft.com/sendemail/Release/ProjectReleases.aspx?ReleaseId=176</link><description>An example in C&amp;#35; anv VB.NET on how to send a simple SMTP-based e-mail message.</description><author></author><pubDate>Wed, 13 Feb 2008 12:59:11 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Send E-mail (Feb 08, 2008) 20080213P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Home&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
Send E-mail
&lt;/h1&gt;A simple C&amp;#35;&amp;#47;VB.NET code snippet for sending an SMTP-based e-mail message.  It supports multiple recipients but does not support attachments.
&lt;br /&gt;&lt;h2&gt;
Sending E-mail
&lt;/h2&gt;Sending a quick e-mail message using this code snippet is simple:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Download the source code from the &lt;a href="http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Releases&amp;amp;referringTitle=Home"&gt;Releases&lt;/a&gt; tab.&lt;/li&gt;&lt;li&gt;Copy the C# or VB.NET version of the &lt;b&gt;SendMessage&lt;/b&gt; method to your project.&lt;/li&gt;&lt;li&gt;Call the &lt;b&gt;SendMessage&lt;/b&gt; method passing in the appropriate arguments.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Here are a couple of examples:&lt;br /&gt; &lt;br /&gt;&lt;b&gt;C#&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
  // Send a quick e-mail message
  SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, 
     &amp;quot;This is a test message...&amp;quot;,
     &amp;quot;noboday@nowhere.com&amp;quot;,
     &amp;quot;somebody@somewhere.com&amp;quot;, 
     &amp;quot;ccme@somewhere.com&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;VB.NET&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
  ' Send a quick e-mail message
  SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, _
     &amp;quot;This is a test message...&amp;quot;, _
     &amp;quot;noboday@nowhere.com&amp;quot;, _
     &amp;quot;somebody@somewhere.com&amp;quot;, _
     &amp;quot;ccme@somewhere.com&amp;quot;)
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Supported .NET Framework Versions&lt;/b&gt;&lt;br /&gt;  - .NET Framework 2.0&lt;br /&gt;  - .NET Framework 3.0&lt;br /&gt;  - .NET Framework 3.5&lt;br /&gt;
&lt;/div&gt;</description><author>jbramwell</author><pubDate>Mon, 11 Feb 2008 13:41:18 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080211P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Home&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
Send E-mail
&lt;/h1&gt;A simple C&amp;#35;&amp;#47;VB.NET code snippet for sending an SMTP-based e-mail message.  It supports multiple recipients but does not support attachments.
&lt;br /&gt;&lt;h2&gt;
Sending E-mail
&lt;/h2&gt;Sending a quick e-mail message using this code snippet is simple:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Download the source code from the &lt;a href="http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Releases&amp;amp;referringTitle=Home"&gt;Releases&lt;/a&gt; tab.&lt;/li&gt;&lt;li&gt;Copy the C# or VB.NET version of the &lt;b&gt;SendMessage&lt;/b&gt; method to your project.&lt;/li&gt;&lt;li&gt;Call the &lt;b&gt;SendMessage&lt;/b&gt; method passing in the appropriate arguments.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Here are a couple of examples:&lt;br /&gt; &lt;br /&gt;&lt;b&gt;C#&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
  // Send a quick e-mail message
  SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, 
       &amp;quot;This is a test message...&amp;quot;,
       &amp;quot;noboday@nowhere.com&amp;quot;,
       &amp;quot;somebody@somewhere.com&amp;quot;, 
       &amp;quot;ccme@somewhere.com&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;VB.NET&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
  ' Send a quick e-mail message
  SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, _
     &amp;quot;This is a test message...&amp;quot;, _
     &amp;quot;noboday@nowhere.com&amp;quot;, _
     &amp;quot;somebody@somewhere.com&amp;quot;, _
     &amp;quot;ccme@somewhere.com&amp;quot;)
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Supported .NET Framework Versions&lt;/b&gt;&lt;br /&gt;  - .NET Framework 2.0&lt;br /&gt;  - .NET Framework 3.0&lt;br /&gt;  - .NET Framework 3.5&lt;br /&gt;
&lt;/div&gt;</description><author>jbramwell</author><pubDate>Mon, 11 Feb 2008 13:40:53 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080211P</guid></item><item><title>UPDATED RELEASE: Send E-mail (Feb 08, 2008)</title><link>http://code.msdn.microsoft.com/sendemail/Release/ProjectReleases.aspx?ReleaseId=176</link><description>An example in C&amp;#35; anv VB.NET on how to send a simple SMTP-based e-mail message.</description><author></author><pubDate>Mon, 11 Feb 2008 13:29:22 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Send E-mail (Feb 08, 2008) 20080211P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Home&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;h1&gt;
Send E-mail
&lt;/h1&gt;A simple C&amp;#35;&amp;#47;VB.NET code snippet for sending an SMTP-based e-mail message.  It supports multiple recipients but does not support attachments.
&lt;br /&gt;&lt;h2&gt;
Sending E-mail
&lt;/h2&gt;Sending a quick e-mail message using this code snippet is simple:&lt;br /&gt;&lt;ol&gt;
&lt;li&gt;Download the source code from the &lt;a href="http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Releases&amp;amp;referringTitle=Home"&gt;Releases&lt;/a&gt; tab.&lt;/li&gt;&lt;li&gt;Copy the C# or VB.NET version of the &lt;b&gt;SendMessage&lt;/b&gt; method to your project.&lt;/li&gt;&lt;li&gt;Call the &lt;b&gt;SendMessage&lt;/b&gt; method passing in the appropriate arguments.&lt;/li&gt;
&lt;/ol&gt; &lt;br /&gt;Here are a couple of examples:&lt;br /&gt; &lt;br /&gt;&lt;b&gt;C#&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
  // Send a quick e-mail message
  SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, 
       &amp;quot;This is a test message...&amp;quot;,
       &amp;quot;noboday@nowhere.com&amp;quot;,
       &amp;quot;somebody@somewhere.com&amp;quot;, 
       &amp;quot;ccme@somewhere.com&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;VB.NET&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
     ' Send a quick e-mail message
     SendEmail.SendMessage(&amp;quot;This is a Test&amp;quot;, _
          &amp;quot;This is a test message...&amp;quot;, _
          &amp;quot;noboday@nowhere.com&amp;quot;, _
          &amp;quot;somebody@somewhere.com&amp;quot;, _
          &amp;quot;ccme@somewhere.com&amp;quot;)
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Supported .NET Framework Versions&lt;/b&gt;&lt;br /&gt;  - .NET Framework 2.0&lt;br /&gt;  - .NET Framework 3.0&lt;br /&gt;  - .NET Framework 3.5&lt;br /&gt;
&lt;/div&gt;</description><author>jbramwell</author><pubDate>Mon, 11 Feb 2008 13:27:23 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080211P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/sendemail/Wiki/View.aspx?title=Home&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;A simple C&amp;#35;&amp;#47;VB.NET code snippet for sending an SMTP-based e-mail message.  It supports multiple recipients but does not support attachments.
&lt;br /&gt;
&lt;/div&gt;</description><author>jbramwell</author><pubDate>Fri, 08 Feb 2008 16:11:36 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080208P</guid></item><item><title>UPDATED RELEASE: Send E-mail (Feb 08, 2008)</title><link>http://code.msdn.microsoft.com/sendemail/Release/ProjectReleases.aspx?ReleaseId=176</link><description>An example in C&amp;#35; anv VB.NET on how to send a simple SMTP-based e-mail message.</description><author></author><pubDate>Fri, 08 Feb 2008 16:09:58 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: Send E-mail (Feb 08, 2008) 20080208P</guid></item><item><title>CREATED RELEASE: Send E-mail (Feb 08, 2008)</title><link>http://code.msdn.microsoft.com/sendemail/Release/ProjectReleases.aspx?ReleaseId=176</link><description>An example in C&amp;#35; anv VB.NET on how to send a simple SMTP-based e-mail message.</description><author></author><pubDate>Fri, 08 Feb 2008 16:09:04 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: Send E-mail (Feb 08, 2008) 20080208P</guid></item></channel></rss>