none
Multiple users sending email from one account RRS feed

  • Question

  • I have an Outlook plugin that responds when an email is sent by prompting the user to make notes regarding the email sent. This is done by handling the SentItemsFolder.ItemAdd event. The problem is this: We have managers who have personal assistants. The PAs sometimes access the manager's accounts and send email from the said account. When this happens, the event is fired in both users' Outlook sessions. What I need to know is, how to identify the physical user/session that sends an email?
    Tuesday, October 28, 2014 3:34 AM

Answers

  • Hello,

    You can detect the computer name or IP address in the plugin. Get the computer name or IP programmatically is easy, for example this VBA code:

    Dim sHostName As String
    sHostName = Environ$("computername")

    .NET code:

    System.Environment.MachineName


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, October 29, 2014 10:11 AM
    Moderator

All replies

  • Look at the MailItem.SenderXYZ properties vs the MailItem.SentOnBehalfOfName property.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, October 28, 2014 5:42 AM
  • Hello,

    You can detect the computer name or IP address in the plugin. Get the computer name or IP programmatically is easy, for example this VBA code:

    Dim sHostName As String
    sHostName = Environ$("computername")

    .NET code:

    System.Environment.MachineName


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, October 29, 2014 10:11 AM
    Moderator