J
jpfi
Hi,
I've written an console-application based on Redemption
(http://www.dimastr.com/redemption/)).
the following code tries to resolve the smtp-Address of the mailsender:
if(addressEntry.Type.Equals("EX")){
//39FE = PR_SMTP_ADDRESS 001E for type PT_String8
String temp = (String)addressEntry.get_Fields(0x39FE001E);
if(temp == null){
//403E = PR_OrgEmailAddr 001E for type PT_String8
temp = (String)addressEntry.get_Fields(0x403E001E);
if(temp==null){
throw new
Exceptions.MailAddressCouldNotExtractedException(addressEntry.Address);
}
}
return temp;
}
In case of starting the application in normal way the shown code works.
addressEntry.get_Fields(0x39FE001E) return the correct value.
When handling the same mail by starting the app per sceduled task (same
user performer) addressEntry.get_Fields(0x39FE001E) return null !
any idea?
Thank you,
Jan
I've written an console-application based on Redemption
(http://www.dimastr.com/redemption/)).
the following code tries to resolve the smtp-Address of the mailsender:
if(addressEntry.Type.Equals("EX")){
//39FE = PR_SMTP_ADDRESS 001E for type PT_String8
String temp = (String)addressEntry.get_Fields(0x39FE001E);
if(temp == null){
//403E = PR_OrgEmailAddr 001E for type PT_String8
temp = (String)addressEntry.get_Fields(0x403E001E);
if(temp==null){
throw new
Exceptions.MailAddressCouldNotExtractedException(addressEntry.Address);
}
}
return temp;
}
In case of starting the application in normal way the shown code works.
addressEntry.get_Fields(0x39FE001E) return the correct value.
When handling the same mail by starting the app per sceduled task (same
user performer) addressEntry.get_Fields(0x39FE001E) return null !
any idea?
Thank you,
Jan