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("", "", "Error from NightingaleMan", Body)

msgMail.IsBodyHtml = 1

Dim smtp As New SmtpClient
smtp.Host = "MYXCH-SRVR01"

Open in new window

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

Link to home
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


Got some MasterPage postback issues.