outlook addin - Nickname cache issue -
i have plugin use "itemsend" event. inside event i'm creating copy of current email, changing 1 property(sendonbehalf) , sending it, current email i'm canceling. user looks send email. functionality worked fine in outlook 2010-2013 microsoft change functionality , discovered when i'm creating email inside plugin , send it, email addresses of recipients stored in nicknamecache util close outlook. after close , open outlook nicknamecache don't have email addresses used before. found 1 solution use redemption write email addresses directly nickname cache. i'm using following code:
_session = redemptionloader.new_rdosession(); redemptionloader.dlllocation64bit = string.format("{0}\\redemption64.dll", appdomain.currentdomain.basedirectory); redemptionloader.dlllocation32bit = string.format("{0}\\redemption.dll", appdomain.currentdomain.basedirectory); _session.logon(missing.value, missing.value, missing.value, missing.value, missing.value, missing.value); var nicknames = session.getnicknames(); nicknames.add(string.format("{0} <{1}>", recip.name, smtpaddress)); this code work fine in pc when deploy test pc fire error message "mapi_e_not_found" when i'm calling
nicknames.add(string.format("{0} <{1}>", recip.name, smtpaddress));
i found if use
nicknames.add(string.format("{0}", smtpaddress));
it works on test pc give me error in dev pc. ideas can wrong. thank help
Comments
Post a Comment