<?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>Kommentarer til: Webapp mailer</title>
	<atom:link href="http://www.kruse-net.dk/2007/01/25/webapp-mailer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/</link>
	<description>Det man blogger er man selv...</description>
	<lastBuildDate>Thu, 26 Aug 2010 18:41:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Af: Adam D'Auria</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-36615</link>
		<dc:creator>Adam D'Auria</dc:creator>
		<pubDate>Sun, 11 Jul 2010 22:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-36615</guid>
		<description>&lt;p&gt;Oh thank you for this.  Ran into a problem where I had MAPI working and then the customer bought a new computer with Win7 and, well, that was no longer an option.  &lt;/p&gt;

&lt;p&gt;Just a note with regards to attachments, the ComAddAttachment call need to be a Get.&lt;/p&gt;

&lt;p&gt;Example: Get ComAddAttachment of (oCDOMessage(Self)) &quot;c:&#92;email.pdf&quot; &quot;&quot; &quot;&quot; to vRtn&lt;/p&gt;

&lt;p&gt;Where vRtn is a variant datatype.  &lt;/p&gt;

&lt;p&gt;Hope that saves someone some time.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oh thank you for this.  Ran into a problem where I had MAPI working and then the customer bought a new computer with Win7 and, well, that was no longer an option.  </p>

<p>Just a note with regards to attachments, the ComAddAttachment call need to be a Get.</p>

<p>Example: Get ComAddAttachment of (oCDOMessage(Self)) &#8220;c:&#92;email.pdf&#8221; &#8220;&#8221; &#8220;&#8221; to vRtn</p>

<p>Where vRtn is a variant datatype.  </p>

<p>Hope that saves someone some time.</p>]]></content:encoded>
	</item>
	<item>
		<title>Af: Nils G. Svedmyr</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-30655</link>
		<dc:creator>Nils G. Svedmyr</dc:creator>
		<pubDate>Tue, 08 Sep 2009 12:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-30655</guid>
		<description>&lt;p&gt;Success!&lt;/p&gt;

&lt;p&gt;The port setting solved all problems - and I can now successfully send e-mails to gmail accounts. As said above the port number was changed to 465.&lt;/p&gt;

&lt;p&gt;Thank you very much for your help Jakob :-) and of course for this wonderful solution as well!&lt;/p&gt;

&lt;p&gt;Bye, from one happy puppy ;-)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nils G.&lt;/li&gt;
&lt;/ul&gt;
</description>
		<content:encoded><![CDATA[<p>Success!</p>

<p>The port setting solved all problems &#8211; and I can now successfully send e-mails to gmail accounts. As said above the port number was changed to 465.</p>

<p>Thank you very much for your help Jakob <img src='http://www.kruse-net.dk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  and of course for this wonderful solution as well!</p>

<p>Bye, from one happy puppy <img src='http://www.kruse-net.dk/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<ul>
<li>Nils G.</li>
</ul>]]></content:encoded>
	</item>
	<item>
		<title>Af: Jakob Kruse</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-30652</link>
		<dc:creator>Jakob Kruse</dc:creator>
		<pubDate>Tue, 08 Sep 2009 11:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-30652</guid>
		<description>&lt;p&gt;There is another setting named &quot;http://schemas.microsoft.com/cdo/configuration/smtpserverport&quot; that you could try setting to 465 (same way that the other options are set in mailer.pkg). You could also try increasing the connection timeout from 10 to 60. Some servers deliberately delay the connection handshake because that makes some spam clients give up.&lt;/p&gt;

&lt;p&gt;Maybe Google has changed the port since 2007 when John got it working.&lt;/p&gt;

&lt;p&gt;Let me know if you have any success.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>There is another setting named &#8220;http://schemas.microsoft.com/cdo/configuration/smtpserverport&#8221; that you could try setting to 465 (same way that the other options are set in mailer.pkg). You could also try increasing the connection timeout from 10 to 60. Some servers deliberately delay the connection handshake because that makes some spam clients give up.</p>

<p>Maybe Google has changed the port since 2007 when John got it working.</p>

<p>Let me know if you have any success.</p>]]></content:encoded>
	</item>
	<item>
		<title>Af: Nils G. Svedmyr</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-30650</link>
		<dc:creator>Nils G. Svedmyr</dc:creator>
		<pubDate>Tue, 08 Sep 2009 11:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-30650</guid>
		<description>&lt;p&gt;Jakob,&lt;/p&gt;

&lt;p&gt;You are right that the dll&#039;s exist on Vista x86 - I just found them on my laptop (silly Microsoft Search facility that didn&#039;t list them because they are in a protected area). And it is indeed as you say the CDOSYS settings object that throws the exception error.&lt;/p&gt;

&lt;p&gt;Just as John reports above, I&#039;m trying to send to an gmail address - and I have set the &quot;STARTTLS&quot; to true in the config object. All other info for the CDOSYS object has been copied from Windows Live Mail Account Settings for the gmail account in question. That account and all other e-mail accounts works just fine with the Windows Live Mail client.&lt;/p&gt;

&lt;p&gt;There&#039;s no other firewalls than Windows Defender - and I cannot see any blocking there for using SMTP on port 25.&lt;/p&gt;

&lt;p&gt;Is there somewhere else I should be looking?&lt;/p&gt;

&lt;p&gt;More info: Checking my gmail account settings I see that the SMTP port is set to 465 and &quot;This server requires a secure connection (SSL)&quot; is checked.&lt;/p&gt;

&lt;p&gt;These settings were automatically set by the Live Mail client when the account was created. So if these settings are necessary how come that John who is also using gmail got it working??&lt;/p&gt;

&lt;p&gt;I&#039;m all confused...&lt;/p&gt;

&lt;p&gt;Any ideas are most welcome.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nils G.&lt;/li&gt;
&lt;/ul&gt;
</description>
		<content:encoded><![CDATA[<p>Jakob,</p>

<p>You are right that the dll&#8217;s exist on Vista x86 &#8211; I just found them on my laptop (silly Microsoft Search facility that didn&#8217;t list them because they are in a protected area). And it is indeed as you say the CDOSYS settings object that throws the exception error.</p>

<p>Just as John reports above, I&#8217;m trying to send to an gmail address &#8211; and I have set the &#8220;STARTTLS&#8221; to true in the config object. All other info for the CDOSYS object has been copied from Windows Live Mail Account Settings for the gmail account in question. That account and all other e-mail accounts works just fine with the Windows Live Mail client.</p>

<p>There&#8217;s no other firewalls than Windows Defender &#8211; and I cannot see any blocking there for using SMTP on port 25.</p>

<p>Is there somewhere else I should be looking?</p>

<p>More info: Checking my gmail account settings I see that the SMTP port is set to 465 and &#8220;This server requires a secure connection (SSL)&#8221; is checked.</p>

<p>These settings were automatically set by the Live Mail client when the account was created. So if these settings are necessary how come that John who is also using gmail got it working??</p>

<p>I&#8217;m all confused&#8230;</p>

<p>Any ideas are most welcome.</p>

<ul>
<li>Nils G.</li>
</ul>]]></content:encoded>
	</item>
	<item>
		<title>Af: Jakob Kruse</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-30648</link>
		<dc:creator>Jakob Kruse</dc:creator>
		<pubDate>Tue, 08 Sep 2009 09:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-30648</guid>
		<description>&lt;p&gt;Nils,&lt;/p&gt;

&lt;p&gt;The packages were built from the dll&#039;s listed at the top of the files. I have verified that both dll&#039;s exist on my Vista x86 Ultimate.&lt;/p&gt;

&lt;p&gt;The Swedish part of your error message suggest a different problem though, because that part comes from the CDOSYS COM object (so it must be working). The problem seems to be that the server address is incorrect, or maybe a firewall is blocking your attempt. CDOSYS connects using SMTP (port 25) so that must be open.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nils,</p>

<p>The packages were built from the dll&#8217;s listed at the top of the files. I have verified that both dll&#8217;s exist on my Vista x86 Ultimate.</p>

<p>The Swedish part of your error message suggest a different problem though, because that part comes from the CDOSYS COM object (so it must be working). The problem seems to be that the server address is incorrect, or maybe a firewall is blocking your attempt. CDOSYS connects using SMTP (port 25) so that must be open.</p>]]></content:encoded>
	</item>
	<item>
		<title>Af: Nils G. Svedmyr</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-30640</link>
		<dc:creator>Nils G. Svedmyr</dc:creator>
		<pubDate>Tue, 08 Sep 2009 02:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-30640</guid>
		<description>&lt;p&gt;Hi again.&lt;/p&gt;

&lt;p&gt;Which COM object did you select in the Studio to build the cdosys.pkg and msado26.pkg?&lt;/p&gt;

&lt;p&gt;Maybe there is something wrong with my machine - and it would fix it if I try to re-generate those packages?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nils G.&lt;/li&gt;
&lt;/ul&gt;
</description>
		<content:encoded><![CDATA[<p>Hi again.</p>

<p>Which COM object did you select in the Studio to build the cdosys.pkg and msado26.pkg?</p>

<p>Maybe there is something wrong with my machine &#8211; and it would fix it if I try to re-generate those packages?</p>

<ul>
<li>Nils G.</li>
</ul>]]></content:encoded>
	</item>
	<item>
		<title>Af: Nils G. Svedmyr</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-30632</link>
		<dc:creator>Nils G. Svedmyr</dc:creator>
		<pubDate>Mon, 07 Sep 2009 16:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-30632</guid>
		<description>&lt;p&gt;Hi Jakob,&lt;/p&gt;

&lt;p&gt;I&#039;m keep getting the following error when sending from a Vista x86 Ultimate machine with VDF 15:
&quot;COM object method invocation error. Transporten lyckades inte ansluta till servern.
 Error: 4399&quot;&lt;/p&gt;

&lt;p&gt;Any idea what causes it? Is there some component perhaps missing on Vista machines?&lt;/p&gt;

&lt;p&gt;(I&#039;ve been searching on MSDN and have Googled, but haven&#039;t found anything that explains it)&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nils G. Svedmyr&lt;/li&gt;
&lt;/ul&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Jakob,</p>

<p>I&#8217;m keep getting the following error when sending from a Vista x86 Ultimate machine with VDF 15:
&#8220;COM object method invocation error. Transporten lyckades inte ansluta till servern.
 Error: 4399&#8243;</p>

<p>Any idea what causes it? Is there some component perhaps missing on Vista machines?</p>

<p>(I&#8217;ve been searching on MSDN and have Googled, but haven&#8217;t found anything that explains it)</p>

<p>Thanks.</p>

<ul>
<li>Nils G. Svedmyr</li>
</ul>]]></content:encoded>
	</item>
	<item>
		<title>Af: Jakob Kruse</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-9291</link>
		<dc:creator>Jakob Kruse</dc:creator>
		<pubDate>Fri, 01 Feb 2008 09:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-9291</guid>
		<description>&lt;p&gt;Bill,&lt;/p&gt;

&lt;p&gt;I have added a ZIP download to the page. Try that.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Bill,</p>

<p>I have added a ZIP download to the page. Try that.</p>]]></content:encoded>
	</item>
	<item>
		<title>Af: Bill</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-9199</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Tue, 29 Jan 2008 08:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-9199</guid>
		<description>&lt;p&gt;Hi Jakob,&lt;/p&gt;

&lt;p&gt;The cdosys.pkg file is blocked from downloading on my pc/ network.
I get the other two downloads OK.&lt;/p&gt;

&lt;p&gt;Is there an alternative method for for downloading the file?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Bill&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Jakob,</p>

<p>The cdosys.pkg file is blocked from downloading on my pc/ network.
I get the other two downloads OK.</p>

<p>Is there an alternative method for for downloading the file?</p>

<p>Thanks</p>

<p>Bill</p>]]></content:encoded>
	</item>
	<item>
		<title>Af: Jakob Kruse</title>
		<link>http://www.kruse-net.dk/2007/01/25/webapp-mailer/comment-page-1/#comment-8819</link>
		<dc:creator>Jakob Kruse</dc:creator>
		<pubDate>Fri, 11 Jan 2008 12:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kruse-net.dk/2007/01/25/webapp-mailer/#comment-8819</guid>
		<description>&lt;p&gt;Anders,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Somewhere between CreateComObject and ComSend you can call ComAddAttachment on oCDOMessage. Its first (and only mandatory) parameter can be a normal path to a file you wish to attach (or an URL). Check cdosys.pkg for details or look &lt;a href=&quot;http://www.codefixer.com/codesnippets/cdosys_email_with_attachment.asp&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; for an example in ASP.&lt;/li&gt;
&lt;li&gt;CDO talks directly with your mail server using the username and password you specified in mailer.pkg. It does not use Outlook Express. The mail you send will show up in the Sent Mail folder of the specified user on the mail server. If you use IMAP from Outlook Express, it will also show up there. If you use POP3 you might need to do something special to download mail from the Sent Mail folder.&lt;/li&gt;
&lt;li&gt;mailer.pkg is setup to send HTML mail. The string you use as body text must be in HTML format. Linefeeds and other whitespace is irrelevant in HTML, so it won&#039;t show up in your mail. If you wish to add raw text (and thus show linefeeds) you should set ComTextBody from mailer.pkg instead of ComHTMLBody.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Anders,</p>

<ol>
<li>Somewhere between CreateComObject and ComSend you can call ComAddAttachment on oCDOMessage. Its first (and only mandatory) parameter can be a normal path to a file you wish to attach (or an URL). Check cdosys.pkg for details or look <a href="http://www.codefixer.com/codesnippets/cdosys_email_with_attachment.asp" rel="nofollow">here</a> for an example in ASP.</li>
<li>CDO talks directly with your mail server using the username and password you specified in mailer.pkg. It does not use Outlook Express. The mail you send will show up in the Sent Mail folder of the specified user on the mail server. If you use IMAP from Outlook Express, it will also show up there. If you use POP3 you might need to do something special to download mail from the Sent Mail folder.</li>
<li>mailer.pkg is setup to send HTML mail. The string you use as body text must be in HTML format. Linefeeds and other whitespace is irrelevant in HTML, so it won&#8217;t show up in your mail. If you wish to add raw text (and thus show linefeeds) you should set ComTextBody from mailer.pkg instead of ComHTMLBody.</li>
</ol>

<p>Enjoy!</p>]]></content:encoded>
	</item>
</channel>
</rss>
