Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / September 2006

Tip: Looking for answers? Try searching our database.

Sending email to Pocket PC 5.0 local inbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Santosh - 26 Jul 2006 14:54 GMT
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
Peter Foot [MVP] - 26 Jul 2006 17:03 GMT
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

Signature

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

> Hello,
>       I wanted to send email to Pocket PC 5.0 local inbox from C++
[quoted text clipped - 4 lines]
> Thanks,
> -Santosh
Santosh - 27 Jul 2006 12:43 GMT
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

     

> 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
[quoted text clipped - 10 lines]
> > Thanks,
> > -Santosh
Peter Foot [MVP] - 27 Jul 2006 17:07 GMT
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

Signature

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

> 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
[quoted text clipped - 52 lines]
>> > Thanks,
>> > -Santosh
Santosh - 28 Jul 2006 15:04 GMT
Greate!!!
It's working. Thank a lot for all your help.

Cheers,
-Santosh

> 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
[quoted text clipped - 59 lines]
> >> > Thanks,
> >> > -Santosh
Santosh - 08 Sep 2006 09:26 GMT
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

> Greate!!!
> It's working. Thank a lot for all your help.
[quoted text clipped - 65 lines]
> > >> > Thanks,
> > >> > -Santosh

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.