Results 1 to 6 of 6

Thread: email to multiple addresses?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    17

    Question

    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?

  2. #2
    Hyperactive Member parkes's Avatar
    Join Date
    Jan 1999
    Location
    Unitied Kingdom
    Posts
    303
    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
    Thanks in advance for any help provided.

    VB 6 Enterprise Edition SP4
    ADO, SQL 7/2000, ASP and some JavaScript


    >> Life goes on, but for how long? <<
    If you can smile when things go wrong, you have someone in mind to blame

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    17
    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?

  4. #4
    Hyperactive Member parkes's Avatar
    Join Date
    Jan 1999
    Location
    Unitied Kingdom
    Posts
    303
    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
    Thanks in advance for any help provided.

    VB 6 Enterprise Edition SP4
    ADO, SQL 7/2000, ASP and some JavaScript


    >> Life goes on, but for how long? <<
    If you can smile when things go wrong, you have someone in mind to blame

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    17
    Thanks Parks, I'll try it out.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    17
    Correction, "Parkes".

    Sorry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width