?
Solved

Finding of the 'sendername' is the host computer

Posted on 2008-06-12
1
Medium Priority
?
180 Views
Last Modified: 2010-04-08
Hi again

I wish to execute an if statement, so that when the sendername is the email address of the host computer (ie it was a 'sent' not just a 'recieved' email) then the email is saved in an emails out subfolder, else it is saved in an email in folder.
This macro will need to run on a number of different computers, so I wish to find out how to identify what the host name is

thank you.
0
Comment
Question by:kafrin_1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 2000 total points
ID: 21801320
Hi, kafrin_1.

Is this what you're looking for?
'Assumes that olkItem is any item type
If olkItem.SenderName = Application.Session.CurrentUser Then
    'Code for messages sent by this user
Else
    'Code for received messages
End If

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question