Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
WHAT I HAVE:
Visual Basic 2019, .NET 4.6.1, WinForms
MY PROBLEM:
I am using SmtpClient to send emails, and the documentation says that if EnableSsl is True when the server doesn't advertise StartTLS, an SmtpException is thrown. I'd like to handle that scenario intelligently.
Please answer both questions ASAP. I'd prefer it in VB.NET, and as simple as possible. (That's what the "S" in SMTP stands for, after all!)