<?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: ASP Coding: Sending Email From</title>
	<atom:link href="http://jackieho.net/2007/11/asp-coding-sending-email-from/feed/" rel="self" type="application/rss+xml" />
	<link>http://jackieho.net/2007/11/asp-coding-sending-email-from/</link>
	<description>to and to be explore</description>
	<lastBuildDate>Mon, 31 May 2010 16:12:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jax</title>
		<link>http://jackieho.net/2007/11/asp-coding-sending-email-from/comment-page-1/#comment-158</link>
		<dc:creator>Jax</dc:creator>
		<pubDate>Thu, 15 Nov 2007 08:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://jackieho.net/?p=127#comment-158</guid>
		<description>Just found another example.

function CDOSYS_Mailer(Message, FromEmail, ToEmail, FromName, ToName,
Subject, MailerPath, MailerPort, errText, searchURL)
on error resume next
dim Mailer
set Mailer = server.createobject(&quot;CDO.Message&quot;)
if err.number &lt;&gt; 0 then
errText = displayError(&quot;CDOSYS&quot;, searchURL, err.Number, err.Source,
err.Description)
CDOSYS_Mailer = false : set Mailer = nothing : err.clear() : err = 0
exit function
end if

Mailer.From = FromName &amp; &quot; &lt;&quot; &amp; FromEmail &amp; &quot;&gt;&quot;
Mailer.To = ToName &amp; &quot; &lt;&quot; &amp; ToEmail &amp; &quot;&gt;&quot;
Mailer.TextBody = Message
Mailer.Subject = Subject
with Mailer.Configuration
.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) = 2
.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) =
MailerPath
.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserverport&quot;) =
MailerPort
.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&quot;)=1
.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/sendusername&quot;)=&quot;test@yourdomain.com&quot;
.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/sendpassword&quot;)=&quot;youremailpassword&quot;
.Fields.Update
end with
Mailer.Send
if err.number &lt;&gt; 0 then
errText = displayError(&quot;CDOSYS&quot;, searchURL, err.Number, err.Source,
err.Description)
CDOSYS_Mailer = false : set Mailer = nothing : err.clear() : err = 0
exit function
end if
set Mailer = Nothing
CDOSYS_Mailer = true
end function</description>
		<content:encoded><![CDATA[<p>Just found another example.</p>
<p>function CDOSYS_Mailer(Message, FromEmail, ToEmail, FromName, ToName,<br />
Subject, MailerPath, MailerPort, errText, searchURL)<br />
on error resume next<br />
dim Mailer<br />
set Mailer = server.createobject(&#8220;CDO.Message&#8221;)<br />
if err.number <> 0 then<br />
errText = displayError(&#8220;CDOSYS&#8221;, searchURL, err.Number, err.Source,<br />
err.Description)<br />
CDOSYS_Mailer = false : set Mailer = nothing : err.clear() : err = 0<br />
exit function<br />
end if</p>
<p>Mailer.From = FromName &#038; &#8221; < " &#038; FromEmail &#038; ">&#8221;<br />
Mailer.To = ToName &#038; &#8221; < " &#038; ToEmail &#038; ">&#8221;<br />
Mailer.TextBody = Message<br />
Mailer.Subject = Subject<br />
with Mailer.Configuration<br />
.Fields(&#8220;http://schemas.microsoft.com/cdo/configuration/sendusing&#8221;) = 2<br />
.Fields(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpserver&#8221;) =<br />
MailerPath<br />
.Fields(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpserverport&#8221;) =<br />
MailerPort<br />
.Fields(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&#8221;)=1<br />
.Fields(&#8220;http://schemas.microsoft.com/cdo/configuration/sendusername&#8221;)=&#8221;test@yourdomain.com&#8221;<br />
.Fields(&#8220;http://schemas.microsoft.com/cdo/configuration/sendpassword&#8221;)=&#8221;youremailpassword&#8221;<br />
.Fields.Update<br />
end with<br />
Mailer.Send<br />
if err.number <> 0 then<br />
errText = displayError(&#8220;CDOSYS&#8221;, searchURL, err.Number, err.Source,<br />
err.Description)<br />
CDOSYS_Mailer = false : set Mailer = nothing : err.clear() : err = 0<br />
exit function<br />
end if<br />
set Mailer = Nothing<br />
CDOSYS_Mailer = true<br />
end function</p>
]]></content:encoded>
	</item>
</channel>
</rss>
