![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I am trying to get the smtp address of the email item in outlook offline(machine does not have outlook session). This is the my code. But sometimes its giving the smtp address and sometimes it gives empty stirng Dim UtilObject As Redemption.MAPIUtils Dim MessageItem As MessageItem Dim ToAddress As SafeRecipient Const PR_EMAIL = &H39FE001E Set UtilObject = CreateObject("Redemption.MAPIUtils") Set MessageItem = UtilObject.GetItemFromMsgFile("D:/test1.msg") For Each ToAddress In MessageItem.Recipients Debug.Print ToAddress.Address ' To get the smpt email id If InStr(ToAddress.Address, "@") = 0 Then Debug.Print ToAddress.Fields(PR_EMAIL) ' To get the smpt email id end if Next here ToAddress.Fields(PR_EMAIL) function sometiem gives proper smtp address. but sometimes it gives empty string.. Any help really appreciated.. Thanks Vadivel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inconsistent events on same public calendar | coginthemachine | Outlook - Calandaring | 1 | April 1st 06 06:39 AM |
Redemption | Christoph | Add-ins for Outlook | 5 | March 6th 06 04:26 PM |
Inconsistent Calendar Info -- Design problem? Any Fixes? | Toà n | Outlook - Calandaring | 0 | February 14th 06 02:56 PM |
How to set up a series of meetings with inconsistent dates? | Drmyiz | Outlook - Calandaring | 0 | January 30th 06 04:46 PM |
Meeting invitation - inconsistent format | JeremyCS | Outlook - Calandaring | 1 | January 18th 06 11:04 PM |