Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

.Net Mail

My code below works...but I get 6 exact copies of the email.

Any idea why?

Dim Body As String
Body = Session("fullName") & " had had an error on the My Site Intranet Site <br /><br />" & lblErrorMessage.Text & "<br /><br />" & IIf(Clng0(AppConfig("isProduction")) = 1, "Live Site", "Dev Site")

Dim msgMail As New MailMessage("noreply@mysite.net", "lbrister@mysite.net", "Error from NightingaleMan", Body)

msgMail.IsBodyHtml = 1

Dim smtp As New SmtpClient
smtp.Host = "MYXCH-SRVR01"
smtp.Send(msgMail)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Brister

ASKER

Got some MasterPage postback issues.