Chamark
04-11-2007, 12:36 PM
:eek: Is there a way to set the MS-OutLook "High Priority Flag" in ASP Mail? Your help is greatly appreciated.
Sub SendMail()
Dim objNewMail
Set objNewMail = CreateObject("CDO.Message")
With ObjNewMail
'This section provides the configuration information for the remote SMTP server.
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="11.11.38.20"
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Configuration.Fields.Update
'End remote SMTP server configuration section==
.From = "Audit-Review"
.To = Trim(Request.Form("ManagerID"))
.cc = Trim(Request.Form("DirectorID"))
.Subject = "Whatever"
.HTMLBody = "This is an automated message. Please do not respond. ....."
.Send
End With
set objNewMail = Nothing
End Sub
Sub SendMail()
Dim objNewMail
Set objNewMail = CreateObject("CDO.Message")
With ObjNewMail
'This section provides the configuration information for the remote SMTP server.
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="11.11.38.20"
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Configuration.Fields.Update
'End remote SMTP server configuration section==
.From = "Audit-Review"
.To = Trim(Request.Form("ManagerID"))
.cc = Trim(Request.Form("DirectorID"))
.Subject = "Whatever"
.HTMLBody = "This is an automated message. Please do not respond. ....."
.Send
End With
set objNewMail = Nothing
End Sub