smtp mail

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top