Hi Folks,
I am having a problem with sending Messages (SMS / Email) using MAPI.
I have followed the sample applications in the SDK well. But I am still not close to a reliable and robust solution.
My problem is categorically identifying the entries in the MessageStoresTable as corressponding to SMS / Text Messages and POP3 or others. What if the user has configured multiple email accounts on the device
My application currently works fine, because I know how many accounts are configured and which entry or index in the MessageStoresTable corressponds to which account. So, my SMS and EMail messages get created in the Drafts_Folder of the corressponding account and things work fine. But this fix immediatly breaks down if I try this on other devices.
Has any one faced this problem I have a response from an MVP that approximately says that I am at a dead-end with this issue. I genuinely hope he is wrong. I badly need a robust solution for this problem.
Please help.
Best,

Sending SMS / EMAIL with MAPI
M Thomas
Compare the message store PR_DISPLAY_NAME to "SMS".
The following MSDN article may be useful:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/ppc_2002part2.asp
Use the SetColumns method of the Message Stores table, specifying at least PR_DISPLAY_NAME and PR_ENTRYID as column types.
For each row returned, check the value of the PR_DISPLAY_NAME column against the name of the Message Store you want to use.