login about faq

(Working Environment : C#,Silverlight,WCF service hosted by Windows.)

I am trying to retrieve the bounce emails using Chilkat.MailMain.CopyMail() method, I would like to mention that we want message body and message header of emails for our requirement that’s why we forced to use CopyMail() method.

So my query is that how many emails can be copied in email bundle from SMTP i.e. “What is the maximum limit of emails that can be retrieved from SMTP ?”.

In my case the method is taking long time to retrieve the emails and service gets stop even I have set the maximum time limit for the service.

asked Oct 17 '14 at 10:46

chilkat's gravatar image

chilkat ♦♦

First a few points for clarification:

1) SMTP is a protocol for sending email, not for downloading email. When you fetch email from the mail server using the Chilkat MailMan object, it is via the POP3 protocol. (Chilkat's IMAP class is used for the IMAP protocol.)

2) You are not forced to use CopyMail just because you want both header and body. There are numerous alternative functions for downloading email. Some download headers-only. Some download the full emails. Some of the methods that download full emails are: CopyMail, FetchEmail, FetchMime, FetchByMsgNum, FetchMultiple, FetchMimeByMsgnum, GetFullEmail.

What is the Maximum Limit?

There is no maximum limit. Calling CopyMail is not a good idea for a large number of emails for two reasons: It requires a large amount of memory to return them all at once within an email bundle object, and it would take a long time and if the operation is disrupted for any reason (perhaps caused by external network issues), then there is no way to resume. You would need to restart from the beginning. For large numbers of messages, it's better to download and process either one at a time, or in chunks at a time. This keeps memory consumption stable, and also allows your app to resume if there is some sort of failure.


answered Oct 17 '14 at 10:55

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 17 '14 at 10:46

Seen: 1,649 times

Last updated: Oct 17 '14 at 10:55

powered by OSQA