Log in

View Full Version : how to get mail accounts


jyothi
03-28-2006, 08:34 AM
Hi

i'm developing an application which runs on microsoft smartphone 2003, i need to get the email accounts that are configured on the smartphone, and i also need to know outgoing mail server ?
can anyone tell me how to do this ?
i'm using vs2003 with c#.net.

Its very urgent for me.

Thanx in advnce
Jyothi

Mike Temporale
03-28-2006, 02:33 PM
I would guess that information would be in the registry. Have you checked there?

jyothi
03-29-2006, 02:50 PM
i'dont have device and i've emulator to tset the application.

can you tell me in regisrty which entries i've to search for configured mail accounts if you know?

thanx
jyothi

SnozBerries
03-30-2006, 07:54 AM
You should probably be looking at the MAPI (Mail API). I've briefly tried working with it, and I need to revisit it, but it will let you loop through all the accounts on the phone (SMS, MMS, ActiveSync, + any user created email accounts). I'm not sure how to do it in managed code... but I would suspect it's a bit easier than the native code that I was playing with.

jyothi
03-31-2006, 09:55 AM
Hi Snoz

can you provide code in the language you have written.

i'll try to convert that into managed code.

its very very urgent for me.


thanx
Jyothi

SnozBerries
03-31-2006, 05:05 PM
I think it was these MSDN articles that I was following and copying code from:
http://msdn.microsoft.com/library/en-us/dnppcgen/html/ppc_2002.asp
http://msdn.microsoft.com/library/en-us/dnppcgen/html/ppc_2002part2.asp
http://msdn.microsoft.com/library/en-us/dnppcgen/html/ppc_2002part3.asp

Here is another article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5samSendingE-mail.asp

SnozBerries
04-01-2006, 07:43 PM
Saw a post on MoDaCo (where you also posted this question) which linked to a blog. This looks like it could help you:
http://windowsmobilepro.blogspot.com/2006/02/how-to-programmatically-query-mail.html

jyothi
04-03-2006, 10:22 AM
Hi snoz

thank you .

the link
http://windowsmobilepro.blogspot.com/2006/02/how-to-programmatically-query-mail.html

is very useful for us. but we need the same functionality in c#.net.

if you find any such articles please post here.

we will try to implement that in c#.net.