We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How can I know how many percent (or bytes) of the letter have already been sent?

Hi.



I create sending emails.



SmtpClient client = new SmtpClient(…);

MailMessage msg = new MailMessage();



msg.Attachments.Add("…");

client.Send(msg);

// or client.SendAsync(msg, “test-user”);



How can I know how many percent (or bytes) of the letter have already been sent? I need to know this to show sending progress to the my users.



Thanks.

Hi,

Thanks for considering Aspose.

Currently, we do not support tracking how many bytes have been transferred for an email.

A single email is sent very quickly, the user might not even notice the progress bar. If there are some big attachments, then it might take some time to deliver the email and showing progress bar can be a good idea.

If you have more than one emails to be sent, then you can use SmtpClientBulkSendAgent class and use the progress bar to show how many emails have been sent and how many are pending. The sample project is attached at <A href="https://forum.aspose.com/t/44708</A>.</P>