[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

What is the SenderEmailAddress equivalent for Outlook 2000

.Recipients.Add Item.SenderEmailAddress

works fine in office 2003 but not in 2000, what is the equivalent?
0
Antonio King
Asked:
Antonio King
  • 2
1 Solution
 
mvidasCommented:
Hi Alan,

Does your PC have CDO installed on it? It was an optional component while installing outlook 2000.  If you do, take a look at http://www.outlookcode.com/d/code/getsenderaddy.htm
The native outlook 2000 object model doesn't have access to the actual address, just the name.  You have to use cdo (or other components, CDO is just the most common) to get at it.

Matt
0
 
Antonio KingIT ManagerAuthor Commented:
How do I use this code?
0
 
mvidasCommented:
You can tell if you have CDO installed by going to tools / references and looking for Microsoft CDO (or search the registry for "CDO.Message")

Assuming you do, and you're using the "GetFromAddress" function from that page, replace your line of code above:

' .Recipients.Add Item.SenderEmailAddress
 .Recipients.Add GetFromAddress(Item)

Matt
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now