Comments on: Download email attachments in .NET https://www.limilabs.com/blog/download-email-attachments-net Using Limilabs .net components Thu, 08 Sep 2016 21:01:41 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Limilabs support https://www.limilabs.com/blog/download-email-attachments-net#comment-602806 Tue, 08 Apr 2014 13:29:46 +0000 http://www.limilabs.com/blog/?p=258#comment-602806 In reply to Rashmi Ranjan.

@Rashmi Ranjan

You can find all required code in this blog post. Use Imap.GetMessageByUID to download email message and MailBuilder.CreateFromEml to parse it. Then use IMail.Attchments collection.

]]>
By: Rashmi Ranjan https://www.limilabs.com/blog/download-email-attachments-net#comment-602804 Tue, 08 Apr 2014 13:01:00 +0000 http://www.limilabs.com/blog/?p=258#comment-602804 This is a great Mail dll for .Net

I want to get the attachments for a selected email by passing the messageid or the uid as a parameter.

Kindly let me know how can i do this.

]]>
By: Limilabs support https://www.limilabs.com/blog/download-email-attachments-net#comment-541275 Mon, 27 May 2013 13:04:21 +0000 http://www.limilabs.com/blog/?p=258#comment-541275 In reply to Yuvraj.

@Yuvraj

I think you should contact our support with such detailed questions.

> How i can download datewise attachments only ?
You can’t. IMAP server manages messages, not attachments.

First you’ll need to search for email messages using your required criteria. Of course you can find messages within specified dates. Then you can download them entirely (see this article) -or- download message attachments only.

> How to clear my Gmail session?
> Can i stop attachment downloading in between with clearing my gmail session?
I’m sorry, but I don’t understand what you try to accomplish. What do you mean by “Gmail session”? Please contact our support.

]]>
By: Yuvraj https://www.limilabs.com/blog/download-email-attachments-net#comment-541267 Mon, 27 May 2013 11:15:42 +0000 http://www.limilabs.com/blog/?p=258#comment-541267 That’s great Sir.

Thanks again.
Some more questions:
– How i can download datewise attachments only ?
– How to clear my Gmail session?
– Can i stop attachment downloading in between with clearing my gmail session ?

]]>
By: Limilabs support https://www.limilabs.com/blog/download-email-attachments-net#comment-541246 Mon, 27 May 2013 08:09:48 +0000 http://www.limilabs.com/blog/?p=258#comment-541246 In reply to Yuvraj.

@Yuvraj,

> 1. can we filter mail attachments by name & how ?
Use MimeData.FileName or MimeData.SafeFileName properties. You can find samples in this article.

> 2. can we download PDF attachments ?
Yes, you can download any kind of attachment.

> 3. I want to download day wise attachments
You can filter emails that arrived since you last check or search for messages within certain dates. You can also use Gmail’s search syntax.

In most scenarios you download attachments along with the email message. You can however get email information and structure first and then download parts of such message.

]]>
By: Yuvraj https://www.limilabs.com/blog/download-email-attachments-net#comment-541233 Mon, 27 May 2013 07:06:57 +0000 http://www.limilabs.com/blog/?p=258#comment-541233 Hello,

I am using your trail application to download GMail Attachments, can you please support me for following questions:
1. can we filter mail attachments by name & how ?
2. can we download PDF attachments ?
3. I want to download day wise attachments

I want to use this in my application. So please support me for test it.

Many Thanks !!!

]]>
By: Limilabs support https://www.limilabs.com/blog/download-email-attachments-net#comment-528423 Tue, 16 Apr 2013 15:33:58 +0000 http://www.limilabs.com/blog/?p=258#comment-528423 In reply to Jarek.

@Jarek,

As you probably know there are 3 attachment collections:

IMail.Visuals – contains files that should be displayed to the user (usually images embedded inside HTML emails).
IMail.NonVisuals – “real” attachments.
IMail.Attachments – contains all attachments (this includes Visuals and NonVisuals).

Company logo image in the footer is indistinguishable from any other images that are embedded inside HTML, so the answer to your question is no, it is not possible. But it is also not a “real” attachment (rather a visual element) – consider using IMail.NonVisuals collection.

]]>
By: Jarek https://www.limilabs.com/blog/download-email-attachments-net#comment-528413 Tue, 16 Apr 2013 14:05:34 +0000 http://www.limilabs.com/blog/?p=258#comment-528413 Is there a way to skip attachments that are in the signature/footer of the mail (e.g. company logo etc.)?

]]>
By: Limilabs support https://www.limilabs.com/blog/download-email-attachments-net#comment-25251 Sun, 15 Jul 2012 07:37:09 +0000 http://www.limilabs.com/blog/?p=258#comment-25251 In reply to Bafana.

@Bafana

Mail.dll needs to establish connection to the server, it seems that your antivirus software or firewall is preventing this.
Make sure you have antivirus/firewall software disabled or configured correctly.

]]>
By: Bafana https://www.limilabs.com/blog/download-email-attachments-net#comment-25202 Sat, 14 Jul 2012 19:55:27 +0000 http://www.limilabs.com/blog/?p=258#comment-25202 I’m getting this error”An attempt was made to access a socket in a way forbidden by its access permissions 173.194.66.108:110″ any idea?

]]>