ok.. this is not a "how do I email" question I promise!
I have this code which sends off multiple emails.. fine and dandy..
But...
our systems here have a virus protection which means if you are bulk emailing from access through outlook
for every email you send you get a msg saying this could be open to a virus are you sure you want to send it yes/No
have attached a screenshot..
so you have to click yes for every email you send... upto 500 times! Bah!
so.. I am trying to find a way of populating the To:Box with all the recipients before sending the email.. this way it is one email to many receipents.. not 1 email to each individual recipient..
eg. blah@blah.com; wohho@wohho.com; ding@dong.com etc etc
the code I have cycles through the addresses one by one.. is there a way to create one massive string with ";" in between?
many thanks
john.
Private Sub Command0_Click()
Dim rsEmail As DAO.Recordset
Dim strEmail As String
Set rsEmail = CurrentDb.OpenRecordset("email")
Do While Not rsEmail.EOF
strEmail = rsEmail.Fields("Email").Value
DoCmd.SendObject , , , strEmail, , , "ignore this please.. it is a test", "Message Text", False
rsEmail.MoveNext
Loop
Set rsEmail = Nothing
End Sub
I have this code which sends off multiple emails.. fine and dandy..
But...
our systems here have a virus protection which means if you are bulk emailing from access through outlook
for every email you send you get a msg saying this could be open to a virus are you sure you want to send it yes/No
have attached a screenshot..
so you have to click yes for every email you send... upto 500 times! Bah!
so.. I am trying to find a way of populating the To:Box with all the recipients before sending the email.. this way it is one email to many receipents.. not 1 email to each individual recipient..
eg. blah@blah.com; wohho@wohho.com; ding@dong.com etc etc
the code I have cycles through the addresses one by one.. is there a way to create one massive string with ";" in between?
many thanks
john.
Private Sub Command0_Click()
Dim rsEmail As DAO.Recordset
Dim strEmail As String
Set rsEmail = CurrentDb.OpenRecordset("email")
Do While Not rsEmail.EOF
strEmail = rsEmail.Fields("Email").Value
DoCmd.SendObject , , , strEmail, , , "ignore this please.. it is a test", "Message Text", False
rsEmail.MoveNext
Loop
Set rsEmail = Nothing
End Sub