Sending mails with mailkit and check if mail was sent

Adrian Wick

Dear wizards,

i have a problem with sending multiple emails in a batch. A clients has his own ms exchange and apparently there is a limit
on how many emails can be send in a short period of time. Increasing this limit will for sure solve this problem. 

However i would like to include a retry loop if this happens. I was looking in mailkit instructions and couldn't find anything on 
this subject. So i was wondering if i could simply use DNExceptionOccurred() function in order to catch errors?

What do you think? Why wouldn't this work?


Join to automatically receive all group messages.