如何在 asp.net VB 中发送高重要性电子邮件

How to Send email with High Importance in asp.net VB

如何设置下面的代码以生成主题行中具有高优先级的电子邮件?感谢您的指导。

Private Sub SendEmail(ByVal pharmEmail As String, ByVal backupEmail As String)
    Dim smtpClient As New System.Net.Mail.SmtpClient()
    Dim message As New System.Net.Mail.MailMessage()

    Try
        Dim fromAddress As New System.Net.Mail.MailAddress(WebConfigurationManager.AppSettings("EmailFromAddr"), WebConfigurationManager.AppSettings("EmailFromName"))
        message.From = fromAddress
        message.To.Add(pharmEmail)
        message.Subject = WebConfigurationManager.AppSettings("EmailSubject")
        If (WebConfigurationManager.AppSettings("backupEnabled") = True) Then
            message.CC.Add(backupEmail)
        End If
        message.IsBodyHtml = True
        Dim orderURL As New HyperLink
        orderURL.Text = "here"
        orderURL.NavigateUrl = "http://" & WebConfigurationManager.AppSettings("ServerName") & "/User/ReviewOrder.aspx?orderID=" & webOrderID
        message.Body = "An order was created using the account of " + Profile.FirstName.ToString() + " " + Profile.LastName.ToString() + ". " + WebConfigurationManager.AppSettings("EmailBody") + "<a href='" + orderURL.NavigateUrl + "'>here.</a>"
        'message.Body = WebConfigurationManager.AppSettings("EmailBody") & " " & orderURL.
        smtpClient.Send(message)
    Catch ex As Exception
        ErrorHandler.WriteError(ex.ToString)
        Throw ex
    End Try

我相信你可以在 MailMessage 上设置 Priority 属性。有关详细信息,请参阅 MSDN