﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Chris Kempster / Article Discussions / Article Discussions by Author  / Sending Alerts Via a Custom SMTP procedure / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 24 May 2012 14:04:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Sending Alerts Via a Custom SMTP procedure</title><link>http://www.sqlservercentral.com/Forums/Topic94591-75-1.aspx</link><description>&lt;P&gt;Thanks Razvan &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;I will check out single quotes, could be a nasty bug...&lt;/P&gt;</description><pubDate>Wed, 14 Jan 2004 07:05:00 GMT</pubDate><dc:creator>ckempste</dc:creator></item><item><title>RE: Sending Alerts Via a Custom SMTP procedure</title><link>http://www.sqlservercentral.com/Forums/Topic94591-75-1.aspx</link><description>&lt;P&gt;Great article, Chris!&lt;/P&gt;&lt;P&gt;I didn't know about SQL Server Agent tokens until now. I plan to use them for an ErrorLog in SQL Server, but I saw a problem that affects your code too: if the error message contains single quotes ('), the string built for the @message parameter ends there, and the remaining words of the error message will be interpreted as another command, usually leading to an error. The solution that I plan to use is to SET QUOTED_IDENTIFIER OFF and use double quotes (") instead of single quotes. There still is a chance of failure, but it's smaller, because there are much fewer error messages that contain double quotes compared to the error messages that contain single quotes.&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;</description><pubDate>Wed, 14 Jan 2004 04:10:00 GMT</pubDate><dc:creator>Razvan Socol</dc:creator></item><item><title>RE: Sending Alerts Via a Custom SMTP procedure</title><link>http://www.sqlservercentral.com/Forums/Topic94591-75-1.aspx</link><description>&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;I have used an extended stored procedure (freeware) for almost 2 years with success.  You may be interested in taking a look.  &lt;A href="http://www.sqldev.net/xp/xpsmtp.htm"&gt;http://www.sqldev.net/xp/xpsmtp.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description><pubDate>Wed, 14 Jan 2004 02:34:00 GMT</pubDate><dc:creator>mealina</dc:creator></item><item><title>RE: Sending Alerts Via a Custom SMTP procedure</title><link>http://www.sqlservercentral.com/Forums/Topic94591-75-1.aspx</link><description>&lt;P&gt;Sounds good to me, &lt;/P&gt;&lt;P&gt;Thanks &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Tue, 13 Jan 2004 09:49:00 GMT</pubDate><dc:creator>Eric Bauer</dc:creator></item><item><title>RE: Sending Alerts Via a Custom SMTP procedure</title><link>http://www.sqlservercentral.com/Forums/Topic94591-75-1.aspx</link><description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;Actually, its the first ive seen the MSDN link, and there is no problem I see it using this method also. Its like all things tech, 101 different solutions to most problems; this is just one of them that works well from other code written, so im going down the service orientated path, a single buisness obj (aka the DLL) and many services that use it (t-sql, vb, vb-script, asp, etc..) from the business apps.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ck&lt;/P&gt;</description><pubDate>Tue, 13 Jan 2004 09:44:00 GMT</pubDate><dc:creator>ckempste</dc:creator></item><item><title>RE: Sending Alerts Via a Custom SMTP procedure</title><link>http://www.sqlservercentral.com/Forums/Topic94591-75-1.aspx</link><description>&lt;P&gt;I was wondering what the difference would be to use this method, as opposed to a T-SQL method, ie not VB/dll one.&lt;/P&gt;&lt;P&gt;Like this one:&lt;A href="http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B312839#3"&gt;http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B312839#3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As well, a more general and novice question, why would I use this method over something like plain old CDO where I don't have to put in my mail server name (Particularly when I do have a Virtual mail server or whatever else is necessary to send it)? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description><pubDate>Tue, 13 Jan 2004 07:11:00 GMT</pubDate><dc:creator>Eric Bauer</dc:creator></item><item><title>Sending Alerts Via a Custom SMTP procedure</title><link>http://www.sqlservercentral.com/Forums/Topic94591-75-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF=http://www.sqlservercentral.com/columnists/ckempster/sendingalertsviaacustomsmtpprocedure.asp&gt;http://www.sqlservercentral.com/columnists/ckempster/sendingalertsviaacustomsmtpprocedure.asp&lt;/A&gt;</description><pubDate>Sun, 11 Jan 2004 14:35:00 GMT</pubDate><dc:creator>ckempste</dc:creator></item></channel></rss>
