I was wondering, do you really have to increase the timeout of a send operation manually for sending large attachments. I read the Microsoft documentation located here and it says the timeout length is 100 seconds. Instead of working with timeout, I was wondering if its possible to rather just tell it to continue going until either an error is found or the mail message is sent successfully?
Share
The very page you link already gives the answer: use the SendAsync method. From the SendAsync documentation:
The SendCompleted event requires a SendCompletedEventHandler delegate, which in turn receives a AsyncCompletedEventArgs instance, which can be used to find out whether sending succeeded.