Results 1 to 7 of 7
  1. #1
    Calle is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    3

    Sending emails to automatic list of recipients

    Hi there,

    this is my first post and I hope that I will be specific in what I need.

    In attachment I am presenting a simple table in Access. What I am trying to do is to send automatic emails to everyone listed in email address column according to the right sequence:

    Dear <Title>,

    Please find your current salary attached. (and to each email I want to add the attachment loaded to Access).

    Firstly I was trying to merge with Word the right letter but then I got lost what should do next.



    Anyone could help me?

    Many thanks in advance.
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Make a form, in it is a list box of the names, id, emails. (Query)
    the list box will be set to 3 columns.
    put a button to send the emails.
    clicking the button will scan the list,sets the listbox to that individual, (ID),
    the report is bound to a query that uses only the person selected in the listbox,
    (select * from table where ID= forms!frmMyForm!lstBox)

    heres the code:
    Code:
    sub btnSend_click()
    For I = 0 to lstBox.listcount-1
        Itm= lstBox.itemData(I)   'Get next item in list
        LstBox= itm                   'Set listbox
        VTo = lstBox.column(2)   'Get the email address from column
    
        Docmd.sendObject acReport, "myReport".....
    next
    end sub

  3. #3
    Calle is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    3
    Thanks for answering.

    I think I did it how you described but each time debugger appears....

    Could you please take a look?

  4. #4
    ozsupra is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2017
    Location
    Brisbane Australia
    Posts
    4
    Quote Originally Posted by ranman256 View Post
    Make a form, in it is a list box of the names, id, emails. (Query)
    the list box will be set to 3 columns.
    put a button to send the emails.
    clicking the button will scan the list,sets the listbox to that individual, (ID),
    the report is bound to a query that uses only the person selected in the listbox,
    (select * from table where ID= forms!frmMyForm!lstBox)
    [/code]
    ranman256
    I have put this together for Calle
    Are you able to finish as a working process?
    Thanks,
    A.
    Attached Files Attached Files

  5. #5
    Calle is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2017
    Posts
    3
    Hi,

    thank you for preparing this for me. However by clicking the button I can send the report consisted of data regarding people that are checked in the form. How could I create and send email to each person individually that consists of certain data. Like in the example:

    Dear <here put the name of the person>,

    Please find your current salary attached. (and to each email I want to add the attachment loaded to Access). ?

  6. #6
    ozsupra is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2017
    Location
    Brisbane Australia
    Posts
    4
    Hi Calle,
    I'm actually an Excel programmer and although MS Acces is similar it isn't quite the same as access. I have never done this so bear with me.

    I believe the process could be (remembering there are many ways to skin a cat)

    1) Create a table where you store the persons names and email addresses
    2) Create a second table where you import their salary statements
    3) Then another to store the text components you need within the email
    3) Next create a query where the statements are linked to the person and it only shows their latest statement
    4) Finally using the previous process add the missing components to outbound e-mails.

    Do a search for sending e-mails from Access and see what others have done... that's where I solve 90% of my questions.

    Sorry I can help further,
    A.

  7. #7
    ozsupra is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2017
    Location
    Brisbane Australia
    Posts
    4

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

Similar Threads

  1. Replies: 5
    Last Post: 11-27-2015, 04:45 PM
  2. Sending e-mail to multiple recipients
    By riggsdp in forum Programming
    Replies: 4
    Last Post: 12-01-2014, 12:45 PM
  3. Replies: 3
    Last Post: 09-12-2013, 02:19 PM
  4. Replies: 2
    Last Post: 08-17-2010, 10:54 AM
  5. Automatic emails.
    By motherboard in forum Queries
    Replies: 3
    Last Post: 05-04-2010, 11:03 AM

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