I want to send an email in release mode but not in debug mode, how
would I accomplish this?
Here is my email code (using vb.net, visual studio 2005, winxp pro
sp2):
Try
Dim MailMsg As New MailMessage(New
MailAddress("fr om@mycompany.co m"), New
MailAddress("to thedeveloper@my company.com")) 'from, to
MailMsg.Subject = "Program Generated an Error"
MailMsg.Body = "List Error number and description here"
MailMsg.Priorit y = MailPriority.Hi gh
MailMsg.IsBodyH tml = True
'Smtpclient to send the mail message
Dim SmtpMail As New SmtpClient
SmtpMail.Host = "MYEXCHANGESERV ER"
SmtpMail.Send(M ailMsg) 'sends the email
Catch ex As System.Exceptio n
'Message Error
End Try
would I accomplish this?
Here is my email code (using vb.net, visual studio 2005, winxp pro
sp2):
Try
Dim MailMsg As New MailMessage(New
MailAddress("fr om@mycompany.co m"), New
MailAddress("to thedeveloper@my company.com")) 'from, to
MailMsg.Subject = "Program Generated an Error"
MailMsg.Body = "List Error number and description here"
MailMsg.Priorit y = MailPriority.Hi gh
MailMsg.IsBodyH tml = True
'Smtpclient to send the mail message
Dim SmtpMail As New SmtpClient
SmtpMail.Host = "MYEXCHANGESERV ER"
SmtpMail.Send(M ailMsg) 'sends the email
Catch ex As System.Exceptio n
'Message Error
End Try
Comment