Click to See Complete Forum and Search --> : email to multiple addresses?
JT
Aug 3rd, 2000, 04:01 AM
I know how to send email from a database using vb and an email address field in the database. But does anyone have a suggestion how to send the email to all the values in the email field simultanuously?
parkes
Aug 3rd, 2000, 04:10 AM
Not quite sure what you mean by the last part, but if your trying to send email to more than one person you need to seperate each address with a ;. If this isn't what you mean let me know and I'll see what I can do
JT
Aug 3rd, 2000, 04:17 AM
Yes. that is what I meant. The problem is that I might have 500 records with email addresses, and that one letter must be sent to all 500. I see what you mean by adding a ";" but how can I automate the process?
parkes
Aug 3rd, 2000, 04:29 AM
You would put the whole thing in a loop
table.movefirst
strEmail=table.field("???")
do until table.eof
strEmail=strEmail & ";" & table.field("???")
table.movenext
loop
Hope this make sense
JT
Aug 3rd, 2000, 04:33 AM
Thanks Parks, I'll try it out.
JT
Aug 3rd, 2000, 04:40 AM
Correction, "Parkes".
Sorry
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.