CDO generating duplicate e-mails

  • Thread starter jourdain.augustin
  • Start date
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top