Priority Property

This property specifies the priority level of current email .


Data Type: Long


Remarks

This value is placed in message header as "X-Priority" value. Different mail readers may interpret the X-Priority setting differently; some may not interpret it at all. Popular readers interpret "4"=low, "3"=normal and "1"=high.

Usage Example:

[Visual Basic]
Private Sub SendEmail()
  Dim oSmtp As AOSMTPLib.Mail
  Dim nPriority As Integer
  
  Set oSmtp = New AOSMTPLib.Mail
  nPriority = 1 'High priority

  oSmtp.ServerAddr = "mail.adminsystem.net"
  oSmtp.FromAddr = "test@adminsystem.net"
  oSmtp.AddRecipient "Support Team", "support@adminsystem.net", 0
  oSmtp.Priority = nPriority
  oSmtp.Subject = "Test"
  oSmtp.BodyText = "Hello, this is a test...."
 
  If oSmtp.SendMail() = 0 Then
    MsgBox "Message delivered!"
  Else
    MsgBox oSmtp.GetLastErrDescription()
  End If
End Sub

2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.