<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/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>FAQ</title><link>http://sqlserver.ro/forums/4/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>How to setup Database Mail to work with IIS SMTP Server in Windows XP</title><link>http://sqlserver.ro/forums/thread/198.aspx</link><pubDate>Fri, 29 Sep 2006 18:21:15 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:198</guid><dc:creator>xmldeveloper</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/198.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=4&amp;PostID=198</wfw:commentRss><description>&lt;P&gt;You have to achieve two objectives:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Configure your IIS SMTP Server. 
&lt;LI&gt;Configure Database Mail.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;For the first objective, it is essential to configure your SMTP server to relay messages. How, can you do that? Read here: &lt;A href="http://support.microsoft.com/kb/230235"&gt;XCON: How to Configure the IIS SMTP Service to Relay SMTP Mail&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;For the second part just use the &lt;A href="http://msdn2.microsoft.com/en-us/library/ms175951.aspx"&gt;Database Mail Configuration Wizard&lt;/A&gt;&amp;nbsp; from SQL Server Management Studio.&lt;/P&gt;
&lt;P&gt;To give you an example, here's my configuration:&lt;/P&gt;
&lt;P&gt;Objective 1&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the &lt;STRONG&gt;IIS&lt;/STRONG&gt; (&lt;STRONG&gt;Control Panel -&amp;gt; Administrative Tools&lt;/STRONG&gt;), &lt;STRONG&gt;Default SMTP Virtual Server&lt;/STRONG&gt; node, I added a new domain &lt;STRONG&gt;sqlserver.ro&lt;/STRONG&gt;. 
&lt;LI&gt;Right-click on &lt;STRONG&gt;Default SMTP Virtual Server&lt;/STRONG&gt; node and select &lt;STRONG&gt;Properties&lt;/STRONG&gt;. 
&lt;LI&gt;On the &lt;STRONG&gt;Access&lt;/STRONG&gt; tab, click the &lt;STRONG&gt;Relay...&lt;/STRONG&gt; button. 
&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Add&lt;/STRONG&gt; and I selected the &lt;STRONG&gt;Single Computer&lt;/STRONG&gt;&amp;nbsp;option and I&amp;nbsp;entered my IP adress 89.37.xx.xx.&lt;FONT size=2&gt; &lt;/FONT&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Ok&lt;/STRONG&gt; and close the &lt;STRONG&gt;IIS&lt;/STRONG&gt;. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Objective 2&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Using the &lt;STRONG&gt;Database Mail Configuration Wizard&lt;/STRONG&gt; I created a new profile named &lt;STRONG&gt;MICROTRAINING&lt;/STRONG&gt; and I configured an email address -&amp;nbsp;&lt;A href="mailto:sql@microtraining.ro"&gt;sql@microtraining.ro&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;That's all! The best part is that I did the above steps in 5 minutes and even better&amp;nbsp;it works! &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>