login about faq

I am able to successfully send mail to smtp.office365.com on port 587 by setting StartTLS to true. However it's painfully slow (5-10 seconds). I'm guessing this might be a tar pitting method on Microsoft's part but I just wondered if there were any settings that could speed this up in chilkat. I'm just sending a test email with no attachments so I know it's not a bandwidth issue.

If you have any suggestions please let me know.

Thank you!

asked Sep 26 '14 at 11:38

Todd's gravatar image

Todd
613


Todd, I use Office365 to send (tons of) email for several clients and they all experience slowness with the whole emailing process, regardless of the client used (custom, as for Chilkat or not).

Also, note that emails sent through this route appear to take much longer to be served by Office365's SMTP servers, than emails sent through Outlook/other MS products. There may be some prioritization going on.

I have noticed, clients using their own Exchange servers do not have this issue.

My workaround the issue has been to use Chilkat's SMTPQ, which queues the messages and returns to your flow immediately. This has added benefits, if for example MS' server is having issues (VERY common), you can use the queue sent log to review and resend as necessary.

Overtime I've learned to keep a copy of the sent messages and purge on schedule. This has allowed us to recover from few very sticky situations with client's emails. Having the copy prior to being sent is great.

Not to mention having all email logged so you don't have to. How many times have you gotten a user be SURE they have not seen the email? Unless you are logging yourself sometimes it is not easy to tell. Chilkat's SMTPQ takes care of it. -- I think this is a very underrated product.

-- Happy programming.

link

answered Sep 30 '14 at 18:41

Raficus's gravatar image

Raficus
46125

Hi Raficus,

Thanks so much for your well thought out response. I did take a quick look at SMTPQ even before posting. As of now I did a quick fix of delegating the email sending to a background thread. However by doing so I lack the confirmation of success. The logging would be a big troubleshooting help so when I revisit this again I'll be sure to look into SMTPQ in greater detail.

Best Wishes

(Sep 30 '14 at 19:35) Todd
Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×80
×9
×4

Asked: Sep 26 '14 at 11:38

Seen: 3,780 times

Last updated: Sep 30 '14 at 19:35

powered by OSQA