J
|
Jane 2/1/2007 |
Here is a sample code to pull all emails from the EmailTable: str = "select Emailfield from EmailTable" Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection all_emails = "" while not rsTemp.eof all_emails = all_emails & rsTemp("EmailField") & ", " rsTemp.movenext wend all_emails = Left(all_emails,len(all_emails)-2)
|
![]() |
lefty 2/9/2007 |
Here is a sample code to pull all emails from the EmailTable: where EmailField is your actual field name, EmailTable is your actual table name. Then use all_emails variable as email in the sendmail function.
|
![]() |
lefty 2/13/2007 |
I tried the same code ; The sendmail function errored with must select a domain extension. The varible all_emails seems right but program thinks it needs @.test at the end; which shows me that it is not getting the fldemail from the database ans is trying to send the variable "all_emails" . any help would be highly appreciated as we are trying to design a mass newsletter project. thanks
|
J
|
Jane 2/15/2007 |
John, response.write all_emails |