![]() ![]() MessageBox.Show(ExceptionMessage, "NOTIFICATION E-MAIL FAILED", MessageBoxButtons.OK, MessageBoxIcon.Error) If Not String.IsNullOrEmpty(CDOError) Thenĭim ExceptionMessage As String = ".NET SEND ERROR: " & ex.Message & vbCrLfĮxceptionMessage += ex.InnerException.Message & vbCrLf My code for sending a message is pretty standard (obviously obfuscated a bit for posting), but I've had to include a separate function for sending the message via CDO if it fails: Private Function SendFTPSuccessMail() As Booleanĭim Email As New ĭim MailServer As New (".com")īodyText = "SOME TEXT FOR THE E-MAIL MESSAGE"ĭim CDOError As String = SendCDOEmail(Email, ex) I've found a workaround, but I'm wondering if I'm simply missing something in the configuration that might be causing the issues. Ever since then, I've encountered problems sending e-mail messages to people outside of our organization from my VB.NET applications. Our company recently migrated from an on-premise mail server (CommunigatePro) to hosted mail through our Office 365 subscription.
0 Comments
Leave a Reply. |