J
JayB
We sent out an email today to a list of subscribers from our database using
ASP and CDO. For some reason, many people received it twice, including
myself. I checked the database and there were do duplicate records and I
know for sure that I have no other email address forwarding email. I checked
my code and all seems ok. Perhaps someone can take a look at it and see if I
screwed up somewhere? It was sent to over 9,000 email addresses. When I sent
a test email from the database to 16 internall email addresses, everyone got
it just fine and only received one copy, as planned.
<%
rs.Open SQL, ConStr
rs.movefirst
do until rs.eof = true
strCount = strCount + 1
for i=1 to number
Set myMail = CreateObject("CDO.Message")
myMail.From = "(e-mail address removed)"
myMail.To = rs("EmailAddress")
myMail.Subject = "PACER eNewsletter"
myMail.HTMLBody = content
myMail.Send
Set myMail = Nothing
next
rs.movenext
loop
rs.close
%>
Before I sent the email, I tested this code by replacing everything in the
for loop with a response.write strCount & " " & rs("EmailAddress") just to
make sure it doesn't write any of the email addresses more than once.
Could this be an issue with the SMTP service on my server?
Thanks,
ASP and CDO. For some reason, many people received it twice, including
myself. I checked the database and there were do duplicate records and I
know for sure that I have no other email address forwarding email. I checked
my code and all seems ok. Perhaps someone can take a look at it and see if I
screwed up somewhere? It was sent to over 9,000 email addresses. When I sent
a test email from the database to 16 internall email addresses, everyone got
it just fine and only received one copy, as planned.
<%
rs.Open SQL, ConStr
rs.movefirst
do until rs.eof = true
strCount = strCount + 1
for i=1 to number
Set myMail = CreateObject("CDO.Message")
myMail.From = "(e-mail address removed)"
myMail.To = rs("EmailAddress")
myMail.Subject = "PACER eNewsletter"
myMail.HTMLBody = content
myMail.Send
Set myMail = Nothing
next
rs.movenext
loop
rs.close
%>
Before I sent the email, I tested this code by replacing everything in the
for loop with a response.write strCount & " " & rs("EmailAddress") just to
make sure it doesn't write any of the email addresses more than once.
Could this be an issue with the SMTP service on my server?
Thanks,