J
jourdain.augustin
Hello,
I've got a CDO mail code in my ASP page that for some reason generates
a duplicate e-mail message to its recipients. This doesn't happen all
the time. But when I check the mail header, the header is not
identical. I've checked the code and the .submit line only appears once
per message:
dim cdoConfig, cdoMessage
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = 2 ' cdoSendUsingPort
.Item(cdoSMTPServer) = server
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = FromGroup
.To = szMailbox
.Bcc = szBCCEmail
.CC = szNotify
end if
.Subject = "Test Mail"
.TextBody = szBody
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
I saw someone's message about using a Mutex, but I don't think that
works in ASP. If so please help.
thanks.
I've got a CDO mail code in my ASP page that for some reason generates
a duplicate e-mail message to its recipients. This doesn't happen all
the time. But when I check the mail header, the header is not
identical. I've checked the code and the .submit line only appears once
per message:
dim cdoConfig, cdoMessage
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = 2 ' cdoSendUsingPort
.Item(cdoSMTPServer) = server
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = FromGroup
.To = szMailbox
.Bcc = szBCCEmail
.CC = szNotify
end if
.Subject = "Test Mail"
.TextBody = szBody
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
I saw someone's message about using a Mutex, but I don't think that
works in ASP. If so please help.
thanks.