Re: Write SMS in Inbox
- From: Vikky <Vikky@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Dec 2007 02:40:00 -0800
Hi Peter,
Finally it's working!! I had specified "IPM.SMStext.Msg"
instead of "IPM.SMStext" :-) Thanks a lot for your help!!
"Vikky" wrote:
Hi Peter,.
Thanks a ton! Atlast I made some progress! Now I am able to
display the phone number in "From". But, the message still appears in mail
format, this despite the fact that I have specified the message class as
"IPM.SMStext". I even tried using the sample code in the WinMo 6
documentation for SMS_SetMsgProps (). That also writes the message in mail
format. How do I know that it's in mail format? well, the "subject" that I
write for a message by specifying "PR_SUBJECT" appears in the subject field
and not in the body of the message.
Am I missing something here?
"Peter Foot" wrote:
An SMS must have the message class set to IPM.SMStext and the body is stored
within the PR_SUBJECT property. The sender number is stored in the
PR_SENDER_EMAIL_ADDRESS property.
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"Vikky" <Vikky@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F3F9EA7B-CDE1-4B9F-B12A-419BA92828BA@xxxxxxxxxxxxxxxx
Hi Peter,
Thanks for the reply! But, what I am trying to do is write the
Sender Phone Number in the From field, just as it would appear in case of
a
normal SMS in the Inbox. One more issue I noticed was that the body I
wrote
appears to be in mail format and not SMS format. So, now I am back to
square
one!!
"Peter Foot" wrote:
SMS messages are stored within the CEMAPI message store. Recipients are
stored in the recipients table (IMessage::ModifyRecipients to write
them).
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"Vikky" <Vikky@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AE0957D1-E855-4A8A-9CB4-42832148ABC9@xxxxxxxxxxxxxxxx
Hi, I want to know how to write an SMS in the Inbox. What I am trying
to
do
is implement a backup and restore (SMS) feature on Pocket PC. "Restore"
means
I have to read the SMSes from a persistent store and write it back into
the
Inbox. I have the necessary information, like Sender Mobile Number and
the
message body. I am even able to write the message body in the Inbox.
But,
I
can't find a way to write the Sender number for this message, so the
message
appears in the Inbox without the Sender Number now.
Any idea how to go about it?
- References:
- Re: Write SMS in Inbox
- From: Peter Foot
- Re: Write SMS in Inbox
- From: Peter Foot
- Re: Write SMS in Inbox
- From: Vikky
- Re: Write SMS in Inbox
- Prev by Date: Re: Write SMS in Inbox
- Next by Date: Re: WM5 - Bitmap Rotation
- Previous by thread: Re: Write SMS in Inbox
- Next by thread: CreateFile Bluetooth
- Index(es):
Relevant Pages
|