Results 1 to 5 of 5
  1. #1
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150

    Automated email define who it's sent from

    Hi. I'm hoping you can help.



    Feel free to suggest entirely different solutions. I'm trying to implement a system that automatically emails users if the due date of their tasks has elapsed.

    My current thoughts are to add code to the dashboard form onload event that checks for expired tasks and sends the emails (and then records that they've been sent so the process doesn't keep repeating). However this has a problem in that it means the emails would be sent from the email account of whoever happened to open the database at the opportune time. This could confuse the receivers in that the email could appear to come from someone completely unrelated to the task and upset the people whose outlook accounts I'm taking change of.

    I don't have a dedicated database email address and I doubt I could convince work to allow me to set one up (though I could try). I don't want to restrict it to only work if it's be that loads the database (I'm the whole design team) due to holidays etc. What I see as ideal would be a way to hide the sender of the email so the receiver can't see it and can't reply to the email. Is there anyway to do this? Can anyone think of any other workable solutions? Worst case I'll roll with it and put a big warning at the start of the email but I'm not happy with that. Any help would be appreciated.

    Thanks. Robyn
    Last edited by Robyn_P; 01-17-2019 at 11:29 AM. Reason: Formatting

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    try the SentOnBehalfOfName
    property:

    https://stackoverflow.com/questions/...ame-in-outlook

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Hi Robyn,

    I'm afraid you cannot "hide" the sender of the email, so unless you have a "shared" account and use sendonbehalfof (which in itself needs some work as it needs permissions for all the users of the db) I don't think you can do it. In these cases I used to implement my own db "messaging" functionality, please feel free to use it from http://forestbyte.com/ms-access-util...s-custom-chat/. It is fairly easy to implement and you have full control on its look, settings, messages.

    Cheers,
    Vlad

  4. #4
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150
    Thanks both. Gicu, I can't access your code from the work computer, access is denied and with our FOSS requirements I probably wouldn't be allowed to use it anyway, but thank-you. ranman, I'd already seen that link but it didn't look like something I would have authority to do. Bit stumped. What I'm thinking of doing is getting a list of people who are happy for reminder emails to be sent from their accounts, I think that should be a reasonable solution. As a follow-on: can you define Rich Text formatting in an email created in VBA, i.e. the first line will be red and bold saying "THIS IS AN AUTOMATED EMAIL, PLEASE DO NOT REPLY TO SENDER"?

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    If you use CDO to send email from Access, you can specify the send address as being different to the real email address used.
    This has many genuine uses as well as potential for abuse
    For example, that's one way of setting up a do not reply email address

    If you've never tried CDO email, have a look at my example app CDO EMail Tester
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Automated Email Dispersion
    By RayMilhon in forum Programming
    Replies: 2
    Last Post: 01-17-2018, 12:55 PM
  2. Automated email for reports
    By caniread in forum Reports
    Replies: 4
    Last Post: 08-02-2016, 09:39 PM
  3. Automated Email Question
    By siggybaby_18 in forum Access
    Replies: 16
    Last Post: 12-02-2013, 08:48 AM
  4. Automated Email using Outlook
    By imran688 in forum Programming
    Replies: 25
    Last Post: 11-12-2012, 03:02 AM
  5. Automated Email Notification
    By sai_rlaf in forum Access
    Replies: 5
    Last Post: 12-07-2011, 06:33 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