<?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>C# Help &#187; SMTP</title>
	<atom:link href="http://www.csharphelp.com/tag/smtp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharphelp.com</link>
	<description>C# Tutorial and Guides</description>
	<lastBuildDate>Tue, 07 Feb 2012 01:03:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sending Mail in .NET Using SmtpClient</title>
		<link>http://www.csharphelp.com/2011/01/sending-mail-in-net-using-smtpclient/</link>
		<comments>http://www.csharphelp.com/2011/01/sending-mail-in-net-using-smtpclient/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 06:56:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C# Language]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[SMTPClient]]></category>

		<guid isPermaLink="false">http://www.csharphelp.com/?p=2530</guid>
		<description><![CDATA[The .NET SmtpClient class which is in the System.Net.Mail namespace enables the sending of mail through the ubiquitous Simple Mail Transfer Protocol (SMTP). To send a simple text-based mail, first instantiate an SmtpClient object, set its Host property to your SMTP server address, and finally call Send: SmtpClient clientObj = new SmtpClient(); clientObj.Host = "mail.myisp.net"; [...]]]></description>
			<content:encoded><![CDATA[<p>The .NET <strong>SmtpClient</strong> class which is in the System.Net.Mail namespace enables the sending of mail through the ubiquitous Simple Mail Transfer Protocol (SMTP). To send a simple text-based mail, first instantiate an SmtpClient object, set its Host property to your SMTP server address, and finally call Send:</p>
<pre>SmtpClient clientObj = new SmtpClient();
clientObj.Host = "mail.myisp.net";
clientObj.Send ("from@mydomain.com", "to@adomain.com", "subjecttext", "bodytext");</pre>
<p>To control spam, most SMTP servers will only accept connections from the ISP’s subscribers, so you will need the SMTP address appropriate to the current connection for this to work.</p>
<p>Constructing a MailMessage object allows for more options such as adding attachments:</p>
<pre>SmtpClient clientObj = new SmtpClient();
clientObj.Host = "mail.myisp.net";
MailMessage mmObj = new MailMessage();
mmObj.Sender = new MailAddress ("kay@domain.com", "Kay");
mmObj.From = new MailAddress ("kay@domain.com", "Kay");
mmObj.To.Add (new MailAddress ("bob@domain.com", "Bob"));
mmObj.CC.Add (new MailAddress ("dan@domain.com", "Dan"));
mmObj.Subject = "Hello!";
mmObj.Body = "Hi. Here's my photo!";
mmObj.IsBodyHtml = false;
mmObj.Priority = MailPriority.High;
Attachment a = new Attachment ("photoofme.jpg",
System.Net.Mime.MediaTypeNames.Image.Jpeg);
mmObj.Attachments.Add (a);
clientObj.Send (mmObj);</pre>
<p>SmtpClient allows you to specify authentication credentials for any servers which require this. You can also specify EnableSsl if supported, and alter the TCP Port to a nondefault value. You can also change the DeliveryMethod property to enable you instruct the SmtpClient to use IIS for sending mail messages or to simply write each message to an .eml file in a directory you specify:</p>
<pre>SmtpClient clientObj  = new SmtpClient();
clientObj.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
clientObj.PickupDirectoryLocation = @"c:mail";</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.csharphelp.com/2011/01/sending-mail-in-net-using-smtpclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>POP3 and SMTP Mail Server</title>
		<link>http://www.csharphelp.com/2006/11/pop3-and-smtp-mail-server/</link>
		<comments>http://www.csharphelp.com/2006/11/pop3-and-smtp-mail-server/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 04:01:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C# Language]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[SMTP]]></category>

		<guid isPermaLink="false">http://www.csharphelp.com.php5-3.dfw1-2.websitetestlink.com/?p=365</guid>
		<description><![CDATA[Note Use a_unregister.bat to unregister server(Application\). Use register.bat to register server (Application\) anduse LSMailServerManager.exe mange server. Features Supports multiple domains Supports multiple e-address for one mailbox Support aliasesSupport email routing. eg *ivar* pattern routes all addresses containing ivar to specified mailbox.IP access filtering SMTP AUTH,SIZE commandsPOP3 APOP commandFull MS Sql server supportNice GUI for administationWell [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:xx-small;"><b><br /></b></span><span class="smallblack"><a href="mailto:ivar@lumisoft.ee"></a></span></p>
<p><span class="smallblack">Note</span></p>
<p><span class="smallblack">Use a_unregister.bat to unregister server(Application\). Use register.bat to register server (Application\) anduse LSMailServerManager.exe mange server.</span></p>
<p><span class="smallblack">Features</span></p>
<p><span class="smallblack">Supports multiple domains <br />Supports multiple e-address for one mailbox <br />Support aliases<br />Support email routing. <br />eg *ivar* pattern routes all addresses containing ivar to specified mailbox.<br />IP access filtering <br />SMTP AUTH,SIZE commands<br />POP3 APOP command<br />Full MS Sql server support<br />Nice GUI for administation<br />Well commented source<br />&#8230;<br /></span>
<p><span class="smallblack">How it works?</span></p>
<p><span class="smallblack">MailServerComponent implements POP3 and SMTP(core) servers. (Handles lowlevel POP3 and SMTP commands and raisesevents according to it)<br />MailServer service just handles MailServerComponent events and does mail retrieving and storing job.</span></p>
<p><span class="smallblack">What&#39;s missing?<br />Web administation<br />POP3 web access<br /></span></p>
<p><span class="smallblack">Download <a href="http://www.csharphelp.com/archives2/files/archive381/MailServer.zip">MailServer.zip</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.csharphelp.com/2006/11/pop3-and-smtp-mail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

