Results 1 to 5 of 5
  1. #1
    Saschah is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    2

    Making an automatic mailing & mail tracking system


    Hey Guys,

    I'm pretty new to Acces, I know the basics and have done some VBA stuff but I'm not getting pretty far with this...

    So, what am I trying to do:

    I want to have the possibility to send different pre-made mails to one of my clients just by pushing a button.
    This should take the mail out of a form (or table) which is kind of the clients information form.
    I want to be able to edit the mail to make the standard mail more personal.

    Also, and I think this is the tricky part...
    I want to be able to see in a form or table, which client has had which mail...
    So we can track whether the client is being informed enough...

    We need to send standard mails to every client almost every week but they need to be personal and they will all be send on a different moment during the week. And possibly even by different people.

    Can anyone help me?

    Thanks alot!!!

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,409
    there are plenty of threads on this and other forums about sending emails - so I'll concentrate on the personalisation.

    There are two basic methods 'build' and 'template'

    Presupposing you have in your client table a field called 'salutation' (might be populated with Joe or Mr Smith)

    In your email table, lets suppose you have a message

    "We are pleased to report that nothing has happened in the last week"


    To build you would fetch both records and concatenate a string, something like

    msg="Dear " & Salutation & "," & vbcrlf & vbcrlf & emailmessage

    or for a template, your email table would contain

    "Dear [Salutation],

    We are pleased to report that nothing has happened in the last week"

    and as before, fetch both records and replace [Salutation] in the emailmessage

    msg=replace(emailmessage,"[Salutation]",salutation)

    with regards track who has had what email, you need a tracking table with something like

    ClientID
    MessageID
    DateSent

    and as part of the code sending the email, include code to insert a record into this table.

    If you are going to do this - 'I want to be able to edit the mail to make the standard mail more personal.' - you may also want to store the full email text as well.

  3. #3
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    In addition to the information above have read here - http://www.granite.ab.ca/access/email.htm
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    Saschah is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    2
    Thanks for your response!!

    I'm going to try these things out during the weekend.
    But, the tracking table your are suggesting, is it automated or is this impossible?
    Maybe I can make a tracking table with checkboxes?
    And when I check a box it sends the email?

    What do you think?

    Thanks!

    Quote Originally Posted by Ajax View Post
    there are plenty of threads on this and other forums about sending emails - so I'll concentrate on the personalisation.

    There are two basic methods 'build' and 'template'

    Presupposing you have in your client table a field called 'salutation' (might be populated with Joe or Mr Smith)

    In your email table, lets suppose you have a message

    "We are pleased to report that nothing has happened in the last week"


    To build you would fetch both records and concatenate a string, something like

    msg="Dear " & Salutation & "," & vbcrlf & vbcrlf & emailmessage

    or for a template, your email table would contain

    "Dear [Salutation],

    We are pleased to report that nothing has happened in the last week"

    and as before, fetch both records and replace [Salutation] in the emailmessage

    msg=replace(emailmessage,"[Salutation]",salutation)

    with regards track who has had what email, you need a tracking table with something like

    ClientID
    MessageID
    DateSent

    and as part of the code sending the email, include code to insert a record into this table.

    If you are going to do this - 'I want to be able to edit the mail to make the standard mail more personal.' - you may also want to store the full email text as well.

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,409
    tracking table would be automated - it is tracking what you have sent, not what you need to send

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

Similar Threads

  1. Replies: 9
    Last Post: 04-05-2018, 02:20 AM
  2. Replies: 4
    Last Post: 06-24-2016, 04:03 PM
  3. Send automatic e-mail
    By Csalge in forum Forms
    Replies: 1
    Last Post: 04-08-2013, 11:33 AM
  4. Cafeteria tracking system design
    By tsr_83 in forum Programming
    Replies: 2
    Last Post: 07-28-2010, 09:45 PM
  5. Replies: 16
    Last Post: 03-15-2010, 12:02 AM

Tags for this Thread

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