Using a small loop to send e-mail to a mailing list. Format is as follows.
>>>>>>>>>>>>>
Do While NOT Recordset1.EOF
mailBody = GP_GenerateMailBody() 'index.htm,multi,onsubmit
GP_SendHtmlMail "sales@genecon.com.au",Recordset1.Fields.Item("Email".Value,"","E-mail Subject Here"," Recordset1.MoveNext
Loop
>>>>>>>>>>>>
For some reason, this loop will ONLY send the FIRST record in the database, then gives up.
Anyone have any idea why?
Matthew
>>>>>>>>>>>>>
Do While NOT Recordset1.EOF
mailBody = GP_GenerateMailBody() 'index.htm,multi,onsubmit
GP_SendHtmlMail "sales@genecon.com.au",Recordset1.Fields.Item("Email".Value,"","E-mail Subject Here"," Recordset1.MoveNext
Loop
>>>>>>>>>>>>
For some reason, this loop will ONLY send the FIRST record in the database, then gives up.
Anyone have any idea why?
Matthew