benmate
06-11-2004, 05:21 AM
I have the following code to send an email from a website to a large number of addresses taken from a database. I can't but them all in the "To:" box of teh email window because outlook then crashes. So I thought I could put half in the "cc:" box. but it won't work!
<a href="
mailto:
<% rscontacts.movefirst() %>
<% While (NOT rscontacts.EOF) AND counter <= 35 %>
<%=(rscontacts.Fields.item("Email").value)%>,
<% rscontacts.movenext() %>
<% counter = counter + 1 %>
<% wend %>
?cc=
<% While (NOT rscontacts.EOF) AND counter > 35 AND counter < 70 %>
<%=(rscontacts.Fields.item("Email").value)%>,
<% rscontacts.movenext() %>
<% counter = counter + 1 %>
<% wend %>
<% counter = 0 %>
">
Email the whole committee</a>
The problem is that it won't work! No errors come up but the link just doesn't do anything. The recordset names are def correct and the recordset works. Any idea what might be wrong with the code?
Thankyou for your help,
Ben
<a href="
mailto:
<% rscontacts.movefirst() %>
<% While (NOT rscontacts.EOF) AND counter <= 35 %>
<%=(rscontacts.Fields.item("Email").value)%>,
<% rscontacts.movenext() %>
<% counter = counter + 1 %>
<% wend %>
?cc=
<% While (NOT rscontacts.EOF) AND counter > 35 AND counter < 70 %>
<%=(rscontacts.Fields.item("Email").value)%>,
<% rscontacts.movenext() %>
<% counter = counter + 1 %>
<% wend %>
<% counter = 0 %>
">
Email the whole committee</a>
The problem is that it won't work! No errors come up but the link just doesn't do anything. The recordset names are def correct and the recordset works. Any idea what might be wrong with the code?
Thankyou for your help,
Ben