Results 1 to 5 of 5
  1. #1
    riggsdp is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    25

    Question Sending e-mail to multiple recipients

    I have a question from this page: http://support.microsoft.com/kb/318881



    Is it adding all the recipients in the recordset to the To field or just adding one, sending the e-mail, add another, send, etc.?

    I need to have all recipients in rstEmails recordset added to the To field and sent out in one e-mail.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    It is looping through a recordset of addresses and sending message to one recipient at a time.

    Revise code to loop through recordset and build TO string then outside the loop, send the email.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    riggsdp is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    25
    How would I build the TO string?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    As I said, open a recordset and loop through the records.

    More code examples.
    https://www.accessforums.net/access/...ect-17713.html

    Bing: access vba email multiple addresses
    http://answers.microsoft.com/en-us/o...c-b39976f2c7bf
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    riggsdp is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    25
    Thanks, got it and all works as I need it to!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 09-12-2013, 02:19 PM
  2. Combining 'sending mail' with 'sending a report'.
    By Mattbro in forum Programming
    Replies: 2
    Last Post: 11-25-2012, 07:42 AM
  3. Replies: 11
    Last Post: 09-12-2011, 11:30 AM
  4. Replies: 2
    Last Post: 08-17-2010, 10:54 AM
  5. Sending mail automatically
    By carstenhdk in forum Forms
    Replies: 1
    Last Post: 05-31-2010, 04:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums