ASP.NET Mail

From KOP KB
Revision as of 18:21, 16 October 2015 by ReMaster (talk | contribs) (Created page with "= Comparing strings to avoid email issues = dim str1 As String = txtReceiptEmail.Text.ToString() dim str2 As String = "" if String.Compare(str1, str2) = 0 Then message = Ne...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Comparing strings to avoid email issues

dim str1 As String = txtReceiptEmail.Text.ToString() dim str2 As String = ""

if String.Compare(str1, str2) = 0 Then message = New System.Net.Mail.MailMessage("[email protected]", "[email protected]") else message = New System.Net.Mail.MailMessage("[email protected]", txtReceiptEmail.Text) end if