The SmtpClient class also includes two methods you can use to send an email:
Send() and SendAsync().
The Send method blocks further program execution until the send operation is completed.
The SendAsync() method, on the other hand, sends the email asynchronously.
Unlike the Send() method, the SendAsync() method does not wait to check whether the send operation was successful.
Send() and SendAsync().
The Send method blocks further program execution until the send operation is completed.
The SendAsync() method, on the other hand, sends the email asynchronously.
Unlike the Send() method, the SendAsync() method does not wait to check whether the send operation was successful.
No comments:
Post a Comment