toniz

Hi,

I'm trying to create a SMS backup/restore functionality using mapi, but I'm having problems restoring the PR_SENDER_NAME, it just doesn't get set. All the other properties all restored correctly.

I found the following statement from the MSDN

The PR_SENDER_NAME property is one of the address properties for the message sender. It must be set by the outgoing transport provider, which should never propagate any previously existing values.

Anyone know how to set the PR_SENDER_NAME property to a message in the SMS Inbox

-toni


Re: Smart Devices Native C++ Development Backup/restore sms from PocketPC2003/WM5

Kausik

This the beginning of your problems!!! You'll see dependency on device as you go on implementing the project on different devices. Why not try mapirule to get the details of any SMS that comes in (check wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Mapirule folder plz) Do not forget to change the default class-id before you start using it!




Re: Smart Devices Native C++ Development Backup/restore sms from PocketPC2003/WM5

toniz

The mapirule sample is for reading incoming sms.

What I'm trying to do is to restore backupped messages to the inbox. I have no problems reading all messages from the sms inbox, but when restoring I can't set the sender name. So I add a new message to inbox, set all the values and all of them gets properly set, except for the sender name...

-toni





Re: Smart Devices Native C++ Development Backup/restore sms from PocketPC2003/WM5

AAlec

Toni,

I'm busy trying to read all messages from the SMS Inbox - can you give me some pointers please

Thanks

Alec





Re: Smart Devices Native C++ Development Backup/restore sms from PocketPC2003/WM5

selvaraj

Hi toni,

Have you succed in that problem if so can you tell me how to do that. I am also trying to do so. I can able to create a message in the inbox. But i cannt able to set the properties as SMS. It puts an EMail format message in the Inbox.

Can you help





Re: Smart Devices Native C++ Development Backup/restore sms from PocketPC2003/WM5

ttbeverley

Did you find anything out about this i have just lost lots of sms, and am hoping in one of my backups i can find it without too much hastle.

What is the default location of sms store in WM5

Any help you can give would be muchly appreciated.

Thanks

Tristan





Re: Smart Devices Native C++ Development Backup/restore sms from PocketPC2003/WM5

Kirann


Dear friend
i also stuck to the problem for how to read an inbox message in Windows mobile 5.0 ,igot the following Syntax ,but i am not getting which values to be pass.

Please suggest if any soln

[DllImport("sms.dll")]
private static extern IntPtr SmsReadMessage(IntPtr SmsHandle ,
long psmsaSMSCAddress,
string psmsaSourceAddress,
long pstReceiveTime,
byte pbBuffer,
long dwBufferSize,
long pbProviderSpecificBuffer,
long dwProviderSpecificDataBuffer,
long pdwBytesRead);

Thanks

Kirann.





Re: Smart Devices Native C++ Development Backup/restore sms from PocketPC2003/WM5

vishnu_kv

hi kirann..
u cannot read teh sms using that function its been ristricted u have to use IMailRuleClient to reed teh sms messahes from INBOX
see eth CHM help file of the which is along with teh SDK in teh section

Developer's Reference > Native Code > Networking and Communication > CellCore > Short Message Service (SMS) API


if u come to know how to program using IMailRuleClient then plzz tell me how to read.. even i am try to do teh same..