Re: Message stays in outbox

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



There is however one difference when the same code used to run over a year back (it was just a test code). Earlier I used only ANSI strings and now I am using Unicode strings.

Stephen Griffin [MSFT] wrote:
Ok - forget about submitting the message - that's not going to work until you fix the issue with ResolveName. Until ResolveName is working, the message isn't addressed, and there's no chance it could be sent.

So - what are you passing into ResolveName? What is pAddressList? Can you show the code that builds it?

Steve

"Ashutosh Bhawasinka" <smbs-msdn@xxxxxxxxxxxxx> wrote in message news:ewFyufUxIHA.3336@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I checked
1) with a profile having only a exchange account (NOT in cached mode)
- The message is NOT italicized in the outbox.
- When submitting message the return code was E_FAIL
2) with a profile having Just a POP account(s)/pst
- The message is italicized
- Submit message succeeds but it remains in outbox

hRes = pAddrBook->ResolveName(0, 0, 0, pAddressList);
always fails

I even changed
hRes = pMsg->SaveChanges(KEEP_OPEN_READWRITE)
pMsg->SubmitMessage(FORCE_SUBMIT )

to
hRes = pMsg->SaveChanges(0)
pMsg->SubmitMessage(0 )

Even then the same result.

Regards,
Ashutosh


Dmitry Streblechenko wrote:
Does it work if you switch profile to using the online mode (uncheck the "use cached mode" checkbox)?





--
Ashutosh Bhawasinka
email:expert@xxxxxxxxxxx
.



Relevant Pages

  • Re: Message stays in outbox
    ... with a profile having only a exchange account (NOT in cached mode) ... When submitting message the return code was E_FAIL ... Submit message succeeds but it remains in outbox ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Message stays in outbox
    ... you fix the issue with ResolveName. ... with a profile having only a exchange account (NOT in cached mode) ... When submitting message the return code was E_FAIL ... Submit message succeeds but it remains in outbox ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Message stays in outbox
    ... Until ResolveName is working, the message isn't addressed, and there's no chance it could be sent. ... with a profile having only a exchange account (NOT in cached mode) ... Submit message succeeds but it remains in outbox ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Addressbook, MAPI 6.5 bug?
    ... A call to ResolveName returns MAPI_E_NOT_FOUND. ... The profile is created manually in Windows and the Outlook client works fine ... "Dmitry Streblechenko" wrote in message ...
    (microsoft.public.win32.programmer.messaging)