<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Database Mail – Validating your SMTP mail server configuration using powershell</title><link>http://blogs.msdn.com/b/sqlagent/archive/2010/11/04/database-mail-validating-your-smtp-mail-server-configuration-using-powershell.aspx</link><description>Database mail relies on .NET framework's SMTP client API to send emails. You could write a simple power shell script like this to test out if you are able to send mails using your smtp server 
 Sample Powershell Code to send email: 
 
 
 1: $smtpServer</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Database Mail – Validating your SMTP mail server configuration using powershell</title><link>http://blogs.msdn.com/b/sqlagent/archive/2010/11/04/database-mail-validating-your-smtp-mail-server-configuration-using-powershell.aspx#10089162</link><pubDate>Wed, 10 Nov 2010 22:16:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10089162</guid><dc:creator>Yuhong Li - MSFT</dc:creator><description>&lt;p&gt;When you configure Database Mail, you will need to provide the credential as the required authentication. &amp;nbsp;In this Powershell example, it means to set $smtp.Credentials to the authenticated account.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10089162" width="1" height="1"&gt;</description></item><item><title>re: Database Mail – Validating your SMTP mail server configuration using powershell</title><link>http://blogs.msdn.com/b/sqlagent/archive/2010/11/04/database-mail-validating-your-smtp-mail-server-configuration-using-powershell.aspx#10086288</link><pubDate>Thu, 04 Nov 2010 19:34:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10086288</guid><dc:creator>Marc Mangus</dc:creator><description>&lt;p&gt;What about if the server requires authentication (like BPOS)? Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10086288" width="1" height="1"&gt;</description></item></channel></rss>