Re: Sending email to Pocket PC 5.0 local inbox




Hello Peter,
I am again.I am sending emails(local and external) using MAPI but
sometimes my emails remains in \Windows\Messaging folder and does not appear
in Pocket PC Inbox (local emails) or outbox(external emails). I can see a
file corresponding to every email sent by my application in
\Windows\Messaging folder.

Can you pls help me what is going wrong?

Thanks in advance

Regards,
-Santosh
"Santosh" wrote:

Greate!!!
It's working. Thank a lot for all your help.

Cheers,
-Santosh

"Peter Foot [MVP]" wrote:

When you query the message stores table you'll get a row for each account.
You'll need to retrieve the name properties of these to determine what the
accounts are, e.g. ActiveSync, SMS etc. Call QueryRows again to retrieve the
next account until there are no further results.

Peter

--
Peter Foot
Device Application Developer MVP
www.peterfoot.net | www.inthehand.com


"Santosh" <Santosh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:82F48AAF-DE12-4092-B06F-54D6BE16586E@xxxxxxxxxxxxxxxx
Thanks a lot Peter. You pointed me in right direction and it's working.
Actually, I had seen that function 'SaveChanges' but in Pocket PC 5.0
documentation, it's mentioned that It's not supported and that misleaded
me
but i just tried and it's working fine.

I am adding code snippest for reference to anybody .

After opening message store

ULONG lpcbEntryID;
LPENTRYID lppEntryID;

hr =
pStore->GetReceiveFolder(NULL,MAPI_UNICODE,&lpcbEntryID,&lppEntryID,NULL);
hr = pStore->OpenEntry(lpcbEntryID,
lppEntryID,
NULL,
MAPI_MODIFY,
NULL,
(IUnknown **)&pfldrDrafts);

Create message
set message propety
then
call

pmsg->SaveChanges(0);

Peter, I need one more help. How can I get reference of SMS message store
?
I am calling "pTable->QueryRows(1, 0, &psrs)" to get Outlook message
store
parameter '1' is for outlook). Basically, if I can know what I have to
pass
instead of '1' to get sms inbox reference then I think, I can do.

Thanks,
-Santosh



"Peter Foot [MVP]" wrote:

This can be done via MAPI. The SDK contains a sample called sendmail
which
shows the basics of using MAPI, basically instead of placing your message
in
Drafts and sending it, you can just save it to the Inbox folder.

Peter

--
Peter Foot
Device Application Developer MVP
www.peterfoot.net | www.inthehand.com

"Santosh" <Santosh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3D24AEB8-3361-4CD3-91D6-EBBF042012D3@xxxxxxxxxxxxxxxx
Hello,
I wanted to send email to Pocket PC 5.0 local inbox from C++
application. I mean to create an inbox entry locally.

Can anybody help me how to do?

Thanks,
-Santosh






.



Relevant Pages

  • Re: message in search not in folder
    ... He does not see the email messages in his inbox. ... is able to see the emails. ... When he sorts it by folder name the missing messages ...
    (microsoft.public.mac.office.entourage)
  • RE: Contact Program
    ... Currently the emails are setup by a rule. ... "Website" Inbox. ... specific contact folder to a csv file containing the full names and email ... these names and email address (via creating a Outlook contact first as ...
    (microsoft.public.outlook.program_vba)
  • RE: Contact Program
    ... choose the mail folder that contains the ... If objMailFolder Is Nothing Then Exit Sub ... > Currently the emails are setup by a rule. ... > one Inbox at a time ...
    (microsoft.public.outlook.program_vba)
  • Need help in syncronizing PPC 2002 with MS Outlook 2003
    ... Toshiba e-740 with Pocket ... >deletes messages from PPC's inbox during syncronization ... Exchange on your PC to the ActiveSync folder in Inbox on ... * Messages in the Outbox folder on your PPC are ...
    (microsoft.public.pocketpc.activesync)
  • Re: Getting emails into MS Access - Code enclosed
    ... *all* messages in the Inbox looking for the unread messages. ... each" loop, thus changing the item count in the folder. ... > run Access to pull emails out of Outlook into my tables automatically. ...
    (microsoft.public.outlook.program_vba)