<?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: Download email attachments in .NET</title>
	<atom:link href="http://www.lesnikowski.com/blog/download-email-attachments-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lesnikowski.com/blog/download-email-attachments-net/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=download-email-attachments-net</link>
	<description>EMAIL IMAP POP3 SMTP FTP FTPS barcode components blog</description>
	<lastBuildDate>Mon, 23 Jan 2012 18:49:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Pawel Lesnikowski</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-91</link>
		<dc:creator>Pawel Lesnikowski</dc:creator>
		<pubDate>Wed, 19 Oct 2011 20:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-91</guid>
		<description>@Lax,

1. When using IMAP protocol use IMAP server: imap.gmail.com
2. Use SSL

[csharp]
using (Imap client = new Imap())
{
    client.ConnectSSL(&quot;imap.gmail.com&quot;);
    client.Login(&quot;user@gmail.com&quot;, &quot;password&quot;);
    client.SelectInbox();

    // ...

    client.Close();
}


[/csharp] </description>
		<content:encoded><![CDATA[<p>@Lax,</p>
<p>1. When using IMAP protocol use IMAP server: imap.gmail.com<br />
2. Use SSL</p>
<pre class="brush: csharp;">
using (Imap client = new Imap())
{
    client.ConnectSSL(&quot;imap.gmail.com&quot;);
    client.Login(&quot;user@gmail.com&quot;, &quot;password&quot;);
    client.SelectInbox();

    // ...

    client.Close();
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lax</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-90</link>
		<dc:creator>Lax</dc:creator>
		<pubDate>Wed, 19 Oct 2011 12:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-90</guid>
		<description>I have set up a IMAP gmail account 
I am trying to connect with the code :

 using (Imap imap = new Imap())
            {
                imap.Connect(&quot;smtp.gmail.com&quot;);
                imap.UseBestLogin(&quot;imap.dmtrigger@gmail.com&quot;, &quot;password&quot;);
                imap.SelectInbox();
....
....

But I get this error :
&quot;A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond .... &quot;

Would this be the problem with the account ? But I can send and recieve mails from the account I have set up in my Outlook.
Can anyone help?

Thanks,
Lax.</description>
		<content:encoded><![CDATA[<p>I have set up a IMAP gmail account<br />
I am trying to connect with the code :</p>
<p> using (Imap imap = new Imap())<br />
            {<br />
                imap.Connect(&#8220;smtp.gmail.com&#8221;);<br />
                imap.UseBestLogin(&#8220;imap.dmtrigger@gmail.com&#8221;, &#8220;password&#8221;);<br />
                imap.SelectInbox();<br />
&#8230;.<br />
&#8230;.</p>
<p>But I get this error :<br />
&#8220;A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond &#8230;. &#8221;</p>
<p>Would this be the problem with the account ? But I can send and recieve mails from the account I have set up in my Outlook.<br />
Can anyone help?</p>
<p>Thanks,<br />
Lax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel Lesnikowski</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-89</link>
		<dc:creator>Pawel Lesnikowski</dc:creator>
		<pubDate>Sun, 16 Oct 2011 10:41:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-89</guid>
		<description>@Veincorp

Most likely the sender of the message have not specified the filename at all.
In such case SafeFileName property (which you probably use with Save method) generates unique filename.

You can of course check FileName property for null and act according to your needs.</description>
		<content:encoded><![CDATA[<p>@Veincorp</p>
<p>Most likely the sender of the message have not specified the filename at all.<br />
In such case SafeFileName property (which you probably use with Save method) generates unique filename.</p>
<p>You can of course check FileName property for null and act according to your needs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veincorp</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-88</link>
		<dc:creator>Veincorp</dc:creator>
		<pubDate>Sat, 15 Oct 2011 18:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-88</guid>
		<description>I purchased your mail.dll, it&#039;s awsome, But Why downloaded visual image saved in .DAT extension, is there any way to save it in proper extension</description>
		<content:encoded><![CDATA[<p>I purchased your mail.dll, it&#8217;s awsome, But Why downloaded visual image saved in .DAT extension, is there any way to save it in proper extension</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel Lesnikowski</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-87</link>
		<dc:creator>Pawel Lesnikowski</dc:creator>
		<pubDate>Tue, 04 Oct 2011 15:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-87</guid>
		<description>@mojtaba

Please be more specific. If you have problems parsing the message please follow the steps here: http://www.lesnikowski.com/blog//i-have-problems-parsing-the-message and contact us directly.</description>
		<content:encoded><![CDATA[<p>@mojtaba</p>
<p>Please be more specific. If you have problems parsing the message please follow the steps here: <a href="http://www.lesnikowski.com/blog//i-have-problems-parsing-the-message" rel="nofollow">http://www.lesnikowski.com/blog//i-have-problems-parsing-the-message</a> and contact us directly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mojtaba</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-86</link>
		<dc:creator>mojtaba</dc:creator>
		<pubDate>Mon, 03 Oct 2011 10:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-86</guid>
		<description>files don&#039;t save completely, size of downloaded files is zero.</description>
		<content:encoded><![CDATA[<p>files don&#8217;t save completely, size of downloaded files is zero.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel Lesnikowski</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-85</link>
		<dc:creator>Pawel Lesnikowski</dc:creator>
		<pubDate>Tue, 16 Aug 2011 19:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-85</guid>
		<description>@Kent

You should iterate over Attachments collection as shown in the blog post, 
you can use &lt;strong&gt;foreach &lt;/strong&gt; loop if you are not familiar with lambdas: 

[csharp]
foreach (MimeData attachment in email.Attachments)
{
    attachment.Save(&quot;c:\&quot; + attachment.SafeFileName);
}
[/csharp] </description>
		<content:encoded><![CDATA[<p>@Kent</p>
<p>You should iterate over Attachments collection as shown in the blog post,<br />
you can use <strong>foreach </strong> loop if you are not familiar with lambdas: </p>
<pre class="brush: csharp;">
foreach (MimeData attachment in email.Attachments)
{
    attachment.Save(&quot;c:\&quot; + attachment.SafeFileName);
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kent</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-84</link>
		<dc:creator>Kent</dc:creator>
		<pubDate>Tue, 16 Aug 2011 14:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-84</guid>
		<description>What if there are multiple files in the emails, I cannot figure out how to save them all?

Thanks,
Kent</description>
		<content:encoded><![CDATA[<p>What if there are multiple files in the emails, I cannot figure out how to save them all?</p>
<p>Thanks,<br />
Kent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel Lesnikowski</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-83</link>
		<dc:creator>Pawel Lesnikowski</dc:creator>
		<pubDate>Sat, 16 Jul 2011 07:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-83</guid>
		<description>@Binis Server does that. 
If the password is incorrect you&#039;ll get an exception from Login method.</description>
		<content:encoded><![CDATA[<p>@Binis Server does that.<br />
If the password is incorrect you&#8217;ll get an exception from Login method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binis</title>
		<link>http://www.lesnikowski.com/blog/download-email-attachments-net/#comment-82</link>
		<dc:creator>Binis</dc:creator>
		<pubDate>Wed, 13 Jul 2011 13:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lesnikowski.com/blog/?p=258#comment-82</guid>
		<description>How can I check if the password that a user has entered matches to its username (basically if it is correct).....

Thanks,
Binis</description>
		<content:encoded><![CDATA[<p>How can I check if the password that a user has entered matches to its username (basically if it is correct)&#8230;..</p>
<p>Thanks,<br />
Binis</p>
]]></content:encoded>
	</item>
</channel>
</rss>

