M
Mel
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("(e-mail address removed)"), New
MailAddress("(e-mail address removed)")) 'from, to
MailMsg.Subject = "Program Generated an Error"
MailMsg.Body = "List Error number and description here"
MailMsg.Priority = MailPriority.High
MailMsg.IsBodyHtml = True
'Smtpclient to send the mail message
Dim SmtpMail As New SmtpClient
SmtpMail.Host = "MYEXCHANGESERVER"
SmtpMail.Send(MailMsg) 'sends the email
Catch ex As System.Exception
'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("(e-mail address removed)"), New
MailAddress("(e-mail address removed)")) 'from, to
MailMsg.Subject = "Program Generated an Error"
MailMsg.Body = "List Error number and description here"
MailMsg.Priority = MailPriority.High
MailMsg.IsBodyHtml = True
'Smtpclient to send the mail message
Dim SmtpMail As New SmtpClient
SmtpMail.Host = "MYEXCHANGESERVER"
SmtpMail.Send(MailMsg) 'sends the email
Catch ex As System.Exception
'Message Error
End Try