Solved

Finding of the 'sendername' is the host computer

Posted on 2008-06-12
1
171 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
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Outlook Free & Paid Tools
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now