As you all know, a lot of new ROMs (including mine) are shipping with UC support built in.
Now for a while, I've been pondering how I could use UC to auto-create my email account on each flash - to easily setup my testing. Ponder no more.
In the SDConfig.txt file, you need to have an entry to the XML file we create later on. This will be a line like:
Within this Email.xml file, we want to setup the user account. For exchange, we use the following:
After replacing the required details, this should setup all that is required for Outlook Mobile to query your Exchange server.
Ah you say, but my mail account is POP3. Ah ha I reply, you'll need to use the following code in Email.xml.
"Ahhhh" I hear you say not wanting to be out done, "but I use POP3 over SSL!". You see me chuckle, as you realise I have an answer. Use the following between AUTHSECRET and DOMAIN:
8128000B is for incoming SSL, while 812C000B is for outgoing SSL.
Oh, and if you want to use SMTP auth for sending mail, add in the following after OUTSERVER:
Here my children ends the lesson on auto-provisioning email accounts the UC way. Go forth and use this knowledge to make your lives much, much easier.
Happy Flashing.
Now for a while, I've been pondering how I could use UC to auto-create my email account on each flash - to easily setup my testing. Ponder no more.
In the SDConfig.txt file, you need to have an entry to the XML file we create later on. This will be a line like:
Code:
XML: \Storage Card\Setup\Email.xml
Within this Email.xml file, we want to setup the user account. For exchange, we use the following:
Code:
<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Settings">
<parm name="SyncWhenRoaming" value="1"/>
</characteristic>
<characteristic type="Connection">
<parm name="Domain" value="mydomain"/>
<parm name="Password" value="mypassword"/>
<parm name="SavePassword" value="1"/>
<parm name="Server" value="my.exchange.server.com"/>
<parm name="User" value="My Name"/>
<parm name="URI" value="Microsoft-Server-ActiveSync"/>
<parm name="UseSSL" value="1"/>
</characteristic>
<characteristic type="Mail">
<parm name="Enabled" value="1"/>
<parm name="EmailAgeFilter" value="3"/>
</characteristic>
<characteristic type="Calendar">
<parm name="Enabled" value="1"/>
<parm name="CalendarAgeFilter" value="5"/>
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
After replacing the required details, this should setup all that is required for Outlook Mobile to query your Exchange server.
Ah you say, but my mail account is POP3. Ah ha I reply, you'll need to use the following code in Email.xml.
Code:
<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{4FE84006-9E8A-4158-864D-A2E1E98C3786}">
<parm name="SERVICENAME" value="My Account Mail" />
<parm name="SERVICETYPE" value="POP3" />
<parm name="INSERVER" value="pop.server.com" />
<parm name="OUTSERVER" value="smtp.server.com" />
<parm name="AUTHNAME" value="myusername" />
<parm name="AUTHSECRET" value="mypassword" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="myusername@domain.com" />
<parm name="NAME" value="My Name" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
"Ahhhh" I hear you say not wanting to be out done, "but I use POP3 over SSL!". You see me chuckle, as you realise I have an answer. Use the following between AUTHSECRET and DOMAIN:
Code:
<characteristic type="TAGPROPS">
<parm name="8128000B" value="1"/>
<parm name="812C000B" value="1"/>
</characteristic>
8128000B is for incoming SSL, while 812C000B is for outgoing SSL.
Oh, and if you want to use SMTP auth for sending mail, add in the following after OUTSERVER:
Code:
<parm name="AUTHREQUIRED" value="1"/>
Here my children ends the lesson on auto-provisioning email accounts the UC way. Go forth and use this knowledge to make your lives much, much easier.
Happy Flashing.
Last edited: