Click here to get back home

How to get e-mail account settings and delete e-mail accounts by DMProcessConfigXML() ?

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to get e-mail account settings and delete e-mail accounts by DMProcessConfigXML() ? Lisa Pearlson 06-30-2005
Get Chitika Premium
Posted by Lisa Pearlson on June 30, 2005, 2:57 am
Please log in for more thread options
How to get e-mail account settings and delete e-mail accounts by
DMProcessConfigXML() ?

Are there other ways to delete e-mail accounts, such as POOM or MAPI?

Lisa




Posted by Alexander Shargin on June 30, 2005, 4:38 pm
Please log in for more thread options

You can delete an account using config XML in the following format:
<wap-provisioningdoc><characteristic type="EMAIL2"><nocharacteristic
type="GUID"></characteristic></wap-provisioningdoc>

here GUID is id of account to delete (the same one passed to
DMProcessConfigXML when account is created).


Sincerely,
Alexander

> How to get e-mail account settings and delete e-mail accounts by
> DMProcessConfigXML() ?
>
> Are there other ways to delete e-mail accounts, such as POOM or MAPI?
>
> Lisa
>




Posted by Lisa Pearlson on June 30, 2005, 6:14 pm
Please log in for more thread options
Hey, thanks a lot!

Do you know if creating/deleting mail accounts is also possible using MAPI
or POOM ?
I mean, there is no way to enumerate e-mail accounts, to find the right one,
is there?

Also, if you manually create a mail account, does this account also get a
GUID assigned by outlook?

Where do these GUIDs get stored? If they get stored in the windows registry,
maybe they can be enumerated?


Last but not least, I am new to Smart Phone development and usually I
develop MFC on pocket pc. Turns out Smart Phone doesn't support MFC, and
plain API would be a pain.. While looking for this info, I came across your
WTL port.
Do you use WTL or .NET?

Where can I find sample Smart Phone applications written in C++ and .NET ?
Can I develop .NET with eVC4 or do I need Visual Studio 2003 ?

Lots of questions..
I'm thankful for your time.

Lisa

>
> You can delete an account using config XML in the following format:
> <wap-provisioningdoc><characteristic type="EMAIL2"><nocharacteristic
> type="GUID"></characteristic></wap-provisioningdoc>
>
> here GUID is id of account to delete (the same one passed to
> DMProcessConfigXML when account is created).
>
>
> Sincerely,
> Alexander
>
>> How to get e-mail account settings and delete e-mail accounts by
>> DMProcessConfigXML() ?
>>
>> Are there other ways to delete e-mail accounts, such as POOM or MAPI?
>>
>> Lisa
>>
>
>




Posted by Alexander Shargin on July 1, 2005, 4:23 pm
Please log in for more thread options

As far as I know, you cannot delete mail account via MAPI and POOM. But you
can enumerate all existing accounts via MAPI. Alas, I don't know a good way
to get GUID of an account and accounts created via UI do not have GUIDs at
all. This means that you cannot control such accounts via
DMProcessConfigXML. The only advice I can give is to dump mail databases and
see for yourself what fields are in there.

Smartphones will support MFC starting from WIndows Mobile 2005. Yes, we are
using WTL in some of our projects - not only on Smartphone but on Pocket PC
as well. Note that WTL7.1 officially supports eVC, so you don't need my port
any more. :) We do not use .NET in our projects at all but this does not
mean it is not suitable for Smartphone development - it greatly depends on
your needs and on your experience with native and .NET development.

If you need to develop native apps for Smartphone you need yo use eVC3 for
SP2002 and eVC4.2 or later for SP2003. .NET development is possible only in
VS2003. Both native and .NET development for new Windows Mobile 5 for
Smartphones OS will be done in VS2005.


--
Alexander Shargin
Microsoft MVP in Mobile Devices
http://www.pocketpcdn.com - Pocket PC Developer Network
http://www.smartphonedn.com - Smartphone Developer Network
http://www.rsdn.ru - Russian Software Developer Network


> Hey, thanks a lot!
>
> Do you know if creating/deleting mail accounts is also possible using MAPI
> or POOM ?
> I mean, there is no way to enumerate e-mail accounts, to find the right
> one, is there?
>
> Also, if you manually create a mail account, does this account also get a
> GUID assigned by outlook?
>
> Where do these GUIDs get stored? If they get stored in the windows
> registry, maybe they can be enumerated?
>
>
> Last but not least, I am new to Smart Phone development and usually I
> develop MFC on pocket pc. Turns out Smart Phone doesn't support MFC, and
> plain API would be a pain.. While looking for this info, I came across
> your WTL port.
> Do you use WTL or .NET?
>
> Where can I find sample Smart Phone applications written in C++ and .NET ?
> Can I develop .NET with eVC4 or do I need Visual Studio 2003 ?
>
> Lots of questions..
> I'm thankful for your time.
>
> Lisa
>
>>
>> You can delete an account using config XML in the following format:
>> <wap-provisioningdoc><characteristic type="EMAIL2"><nocharacteristic
>> type="GUID"></characteristic></wap-provisioningdoc>
>>
>> here GUID is id of account to delete (the same one passed to
>> DMProcessConfigXML when account is created).
>>
>>
>> Sincerely,
>> Alexander
>>
>>> How to get e-mail account settings and delete e-mail accounts by
>>> DMProcessConfigXML() ?
>>>
>>> Are there other ways to delete e-mail accounts, such as POOM or MAPI?
>>>
>>> Lisa
>>>
>>
>>
>
>




Posted by Lisa Pearlson on July 1, 2005, 4:02 pm
Please log in for more thread options
Thank you for this response, Alexander,

I'm assuming WTL7.1 is the one coming out bundled with Visual Studio 2005.
So I won't be able to use eVC4 with it.
I've actually never used WTL before, or ATL, only MFC with a mix of Win32
api. But, now that I have to develop on smart phone, I seem to know less
about winapi programming than I thought. I understand it all, when I read
it, but can't make it myself.
In particular, I was hoping to be able to embed internet explorer on SP2003
into my app. In MFC, I used CHTMLView and trapped CHTMLView::BeforeNavigate2
to catch clicks on HTML elements to call my own C++ functions.
I wouldn't know how to do that on SP2003. Does its internet explorer even
expose an interface, via COM or ActiveX?

eVC4 doesn't even show a resource editor for smart phone development. Are
design time resources all MFC or something, and in winapi must be always
dynamically created? I can't even find common controls like CEdit described
in the online docs. Those aren't MFC only, are they?

Lisa

>
> As far as I know, you cannot delete mail account via MAPI and POOM. But
> you can enumerate all existing accounts via MAPI. Alas, I don't know a
> good way to get GUID of an account and accounts created via UI do not have
> GUIDs at all. This means that you cannot control such accounts via
> DMProcessConfigXML. The only advice I can give is to dump mail databases
> and see for yourself what fields are in there.
>
> Smartphones will support MFC starting from WIndows Mobile 2005. Yes, we
> are using WTL in some of our projects - not only on Smartphone but on
> Pocket PC as well. Note that WTL7.1 officially supports eVC, so you don't
> need my port any more. :) We do not use .NET in our projects at all but
> this does not mean it is not suitable for Smartphone development - it
> greatly depends on your needs and on your experience with native and .NET
> development.
>
> If you need to develop native apps for Smartphone you need yo use eVC3 for
> SP2002 and eVC4.2 or later for SP2003. .NET development is possible only
> in VS2003. Both native and .NET development for new Windows Mobile 5 for
> Smartphones OS will be done in VS2005.
>
>
> --
> Alexander Shargin
> Microsoft MVP in Mobile Devices
> http://www.pocketpcdn.com - Pocket PC Developer Network
> http://www.smartphonedn.com - Smartphone Developer Network
> http://www.rsdn.ru - Russian Software Developer Network
>
>
>> Hey, thanks a lot!
>>
>> Do you know if creating/deleting mail accounts is also possible using
>> MAPI or POOM ?
>> I mean, there is no way to enumerate e-mail accounts, to find the right
>> one, is there?
>>
>> Also, if you manually create a mail account, does this account also get a
>> GUID assigned by outlook?
>>
>> Where do these GUIDs get stored? If they get stored in the windows
>> registry, maybe they can be enumerated?
>>
>>
>> Last but not least, I am new to Smart Phone development and usually I
>> develop MFC on pocket pc. Turns out Smart Phone doesn't support MFC, and
>> plain API would be a pain.. While looking for this info, I came across
>> your WTL port.
>> Do you use WTL or .NET?
>>
>> Where can I find sample Smart Phone applications written in C++ and .NET
>> ?
>> Can I develop .NET with eVC4 or do I need Visual Studio 2003 ?
>>
>> Lots of questions..
>> I'm thankful for your time.
>>
>> Lisa
>>
>>>
>>> You can delete an account using config XML in the following format:
>>> <wap-provisioningdoc><characteristic type="EMAIL2"><nocharacteristic
>>> type="GUID"></characteristic></wap-provisioningdoc>
>>>
>>> here GUID is id of account to delete (the same one passed to
>>> DMProcessConfigXML when account is created).
>>>
>>>
>>> Sincerely,
>>> Alexander
>>>
>>>> How to get e-mail account settings and delete e-mail accounts by
>>>> DMProcessConfigXML() ?
>>>>
>>>> Are there other ways to delete e-mail accounts, such as POOM or MAPI?
>>>>
>>>> Lisa
>>>>
>>>
>>>
>>
>>
>
>




Similar ThreadsPosted
How can I get the pcoutlook Email account infomation in CF2 October 10, 2006, 11:17 pm
How to retrieve email settings July 18, 2005, 1:31 am
how to get message ID in email ? August 23, 2006, 7:13 am
How to save the email to the right folder? September 5, 2005, 10:19 am
"Compose" email programmatically? February 6, 2006, 2:20 pm
Sending email programmatically May 11, 2006, 9:01 am
Converting Attachment in an Email to an MMS December 4, 2006, 7:19 am
intercept email through my application July 13, 2007, 7:42 am
Setting the language of an email February 25, 2008, 7:25 am
treo, email attachment problems March 8, 2006, 9:57 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap