Is there a way to specifty my own message-id with CDO ?
Using the following configuration, the message-id is still generated by the cdo component and ignores the one I specified.
<%
Const cdoSendUsingPort = 2
Dim iMsg, iConf, Flds
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
' set the CDOSYS configuration fields to use port 25 on the SMTP server
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp@example.com"
.Item("urn:schemas:mailheader:message-id") = "0123456789.0123456789@example.com"
.Update
End With
With iMsg
Set .Configuration = iConf
.From = "from@example.com"
.Subject = "test"
.To = "to@example.com"
.HTMLBody = "test"
.Send
End With
Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing
%>