I have an asp.net page that sends an email to a client using much of the rendered page content. For some reason, it is sending 2 emails every time and I can't figure out why. I have similar code on another page and it works great. Can anyone see in my
sub below what could be causing this?
Protected Sub BtnEmailPlanner_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnEmailPlanner.Click
If txtEmailFrom.Text = "" Then
txtMsg.Text = "There is no FROM (Organization) email address. Email cancelled."
Exit Sub
End If
If txtEmailTo.Text = "" Then
txtMsg.Text = "There is no TO Email address. Email cancelled."
Exit Sub
End If
PanelNewMenu.Visible = False
Dim strOldCaption As String = LblCaption.Text
LblCaption.Visible = False
Dim toAddres ...
Go to the complete details ...