<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SPUtility.SendEmail</title>
	<atom:link href="http://www.dotnetthoughts.net/2007/11/07/sputilitysendemail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net/2007/11/07/sputilitysendemail/</link>
	<description>a dotnet developer&#039;s technical blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 06:43:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Drew</title>
		<link>http://www.dotnetthoughts.net/2007/11/07/sputilitysendemail/#comment-484</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Wed, 16 Feb 2011 17:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://anuraj.wordpress.com/2007/11/07/sputilitysendemail/#comment-484</guid>
		<description>I&#039;ve been trying to get SharePoint 2007 to send email via timer job for several days now and am finally going out to the internetz for help. The timer job is installing a successfully running every 5 minutes. However, I am not receiving any emails. Here is the code that I am using.

                       SmtpClient smtp = new SmtpClient(this.WebApplication.OutboundMailServiceInstance.Server.Address);

                        smtp.UseDefaultCredentials = (smtp.Credentials == null);

                        MailMessage message = new MailMessage(&quot;email@email.com&quot;, &quot;email@email.com&quot;);

                        smtp.Send(message);</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to get SharePoint 2007 to send email via timer job for several days now and am finally going out to the internetz for help. The timer job is installing a successfully running every 5 minutes. However, I am not receiving any emails. Here is the code that I am using.</p>
<p>                       SmtpClient smtp = new SmtpClient(this.WebApplication.OutboundMailServiceInstance.Server.Address);</p>
<p>                        smtp.UseDefaultCredentials = (smtp.Credentials == null);</p>
<p>                        MailMessage message = new MailMessage(&#8220;email@email.com&#8221;, &#8220;email@email.com&#8221;);</p>
<p>                        smtp.Send(message);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.dotnetthoughts.net/2007/11/07/sputilitysendemail/#comment-438</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 03 Nov 2010 09:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://anuraj.wordpress.com/2007/11/07/sputilitysendemail/#comment-438</guid>
		<description>Hi jafar,
you cannot use SPUtility.SendEmail() in a timer job, because SendEmail() uses SPContext that is not present in timerjobs.</description>
		<content:encoded><![CDATA[<p>Hi jafar,<br />
you cannot use SPUtility.SendEmail() in a timer job, because SendEmail() uses SPContext that is not present in timerjobs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anuraj</title>
		<link>http://www.dotnetthoughts.net/2007/11/07/sputilitysendemail/#comment-33</link>
		<dc:creator>anuraj</dc:creator>
		<pubDate>Tue, 15 Sep 2009 01:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://anuraj.wordpress.com/2007/11/07/sputilitysendemail/#comment-33</guid>
		<description>Thanks Gunnar, thanks for the valuable information.</description>
		<content:encoded><![CDATA[<p>Thanks Gunnar, thanks for the valuable information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunnar</title>
		<link>http://www.dotnetthoughts.net/2007/11/07/sputilitysendemail/#comment-32</link>
		<dc:creator>Gunnar</dc:creator>
		<pubDate>Mon, 14 Sep 2009 12:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://anuraj.wordpress.com/2007/11/07/sputilitysendemail/#comment-32</guid>
		<description>You should check SharePoint logs at information level to find out if there are messages that may lead you to source of your problem.</description>
		<content:encoded><![CDATA[<p>You should check SharePoint logs at information level to find out if there are messages that may lead you to source of your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Janey Wang</title>
		<link>http://www.dotnetthoughts.net/2007/11/07/sputilitysendemail/#comment-31</link>
		<dc:creator>Janey Wang</dc:creator>
		<pubDate>Mon, 20 Jul 2009 14:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://anuraj.wordpress.com/2007/11/07/sputilitysendemail/#comment-31</guid>
		<description>Hoi , I think you might be able to do it. Please check http://www.myfatblog.co.uk/?p=79, I have tried it in my project and it works. :)</description>
		<content:encoded><![CDATA[<p>Hoi , I think you might be able to do it. Please check <a href="http://www.myfatblog.co.uk/?p=79" rel="nofollow">http://www.myfatblog.co.uk/?p=79</a>, I have tried it in my project and it works. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

