How to Retain Your Email Settings Following a Factory Reset In Your Window Mobile Handset

When resorting to a factory reset to reinvigorate your Windows Mobile phone – for instance to get rid of a severe bug or remove some badly made software you’ve downloaded – it can be a galling procedure to pour over your handset re-entering your email settings if you’re using POP or IMAP.

Happily there is a simple way to create an XML file to store your settings and turn this into a CAB file which will apply your IMAP and/or POP3 settings for single or multiple email accounts.

This process will work on Windows Mobile 6, 6.1 and 6.5 devices.

Tools You Will Need

In order to build the CAB file, you’ll need to know the following:

  • CHARACTERISTIC TYPE – give your email settings a name
  • CHARACTERISTIC TYPE – this time visit to generate a GUID to enter in this field.
  • SERVICENAME – The name you give to your email account in Pocket Outlook
  • SERVICETYPE – This will be POP3 or IMAP4, depending on your email setup
  • INSERVER – Your incoming mailserver name
  • OUTSERVER – The name of your outgoing mailserver
  • NAME – Your sender name
  • AUTHNAME – Email account username
  • AUTHSECRET – Email account password
  • DOMAIN – The email domain – not usually required for webmail accounts
  • REPLYADDR – The address you require emails to be replied to.

This information can be acquired from your existing email account setup or your email provider details.

To carry out this task, you’ll need the following free software:

A good text or XML editor – I would recommend Notepad++, the superb open source alternative to the aging Windows notepad text editor, which is available free from

Microsoft Cabinet Software Development Kit – this tool, free from Microsoft, will create the CAB file that holds your email settings and can be run whenever you need to restore your details.

The Code

In order to begin, first of all download and install Notepad++.

Next it’s time to create your email setup. The code required should be copied from below, and pasted into a new text file in Notepad++.

You might also want to configure SMTP Authorization settings if your email host required it – insert these lines above the first </characteristic>.

Once you’ve copied this across, save it as “_setup.xml”.

How your email settings _setup.xml file may look

Next, you’ll need to complete the blank fields, as explained above.

Once you’ve done this, take a look at the final 5 lines. Some of these can be altered, depending on your preference:

The setting “DWNDAY” value=”3″ sets Pocket Outlook to retrieve only messages that arrived in your inbox within the last 3 days.

“KEEPMAX” value=”25″ – this will retrieve up to 25 emails.

Finally, “RETRIEVE” value=”2048″ will retrieve only 2kb of each email message, with the rest of the message being downloaded when required. This allows headers, sender and subject details to be downloaded, although it is possible to set this value to “header only”.

As long as the fields are all complete as required, save the document and exit.

(Note that multiple email account details can be stored – simply remove the lines:

…then copy the previous code again, filling in theĀ  secondary account details. As long as the file ends with the 2 lines you moved, all should work fine.

Creating the CAB File

Next, unzip the Microsoft Cabinet Software Development Kit. Cabsdk.exe is a self-extracting executable that needs to be unpacked somewhere memorable, such as C:\CABmaker.

Use Command Prompt to make the CAB file

Once completed, go to Start > Run and type CMD to open the Command Line.

Switch your prompt to the location of your _setup.xml file, and enter:

This will create a file – – in the same folder as _setup.xml – and that’s it!

Copy this to your Windows Mobile device memory card, or keep in a safe place on your PC.

Next time your Windows Mobile device has been reinstalled or had factory settings restored, simply run the file on your handset to populate your email settings!

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox