C
cj
using smtp mail from VB 2005 I want to set the priority of a message to
high. Does anyone know how.
Private Sub SendMsg(ByVal message As String)
'send smtp mail
Try
Dim msg As New System.Net.Mail.MailMessage
Dim smtp As New System.Net.Mail.SmtpClient
msg.From = New System.Net.Mail.MailAddress("(e-mail address removed)")
msg.To.Add("(e-mail address removed)")
msg.Subject = "Problem"
msg.Body = message
smtp.Host = "smtp.myco.com"
smtp.Port = 25
smtp.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
smtp.Credentials = New
System.Net.NetworkCredential("(e-mail address removed)", "pass")
smtp.Send(msg)
Catch ex As Exception
'stuff
End Try
End Sub
high. Does anyone know how.
Private Sub SendMsg(ByVal message As String)
'send smtp mail
Try
Dim msg As New System.Net.Mail.MailMessage
Dim smtp As New System.Net.Mail.SmtpClient
msg.From = New System.Net.Mail.MailAddress("(e-mail address removed)")
msg.To.Add("(e-mail address removed)")
msg.Subject = "Problem"
msg.Body = message
smtp.Host = "smtp.myco.com"
smtp.Port = 25
smtp.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
smtp.Credentials = New
System.Net.NetworkCredential("(e-mail address removed)", "pass")
smtp.Send(msg)
Catch ex As Exception
'stuff
End Try
End Sub