Search code examples
vbaoutlookoutlook-2010

FROM Name MailItem Property


I am trying to record tasks via sending an email in Outlook and I need to have the sender name in the body so the others know the task is assigned to them.

Using MailObj.SenderName does not use the FROM name it would look for the name of the recipient if I was replying.


Solution

  • If you want the current user information, use Application.Session.CurrentUser.