Provisioning Two Accounts Example for OMA DM
This example shows how to set up two e-mail accounts — one that uses an Internet Mail Access Protocol (IMAP) incoming server, and another that uses a POP3 server.
Adding a POP3 email account
<Atomic>
<CmdID>1000</CmdID>
<Add>
<CmdID>1200</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">node</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
</Item>
</Add>
<Replace>
<CmdID>1300</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>email acct 1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1400</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/SERVICETYPE</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>POP3</Data>
</Item>
</Replace>
<Replace>
<CmdID>1500</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/INSERVER</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>IncomingServer1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1600</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/OUTSERVER</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>OutgoingServer1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1700</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/AUTHNAME</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>authname1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1800</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/AUTHSECRET</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>password1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1900</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/REPLYADDR</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>email1@microsoft.com</Data>
</Item>
</Replace>
<Replace>
<CmdID>2000</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/NAME</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>John Q. Doe1</Data>
</Item>
</Replace>
<Replace>
<CmdID>2100</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/AUTHREQUIRED</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>1</Data>
</Item>
</Replace>
<Replace>
<CmdID>2200</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/DWNDAY</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>1</Data>
</Item>
</Replace>
<Replace>
<CmdID>2300</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/LINGER</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>60</Data>
</Item>
</Replace>
<Replace>
<CmdID>2400</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/RETRIEVE</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>999</Data>
</Item>
</Replace>
<Replace>
<CmdID>2500</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/DOMAIN</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>Domain1</Data>
</Item>
</Replace>
</Atomic>
Adding an IMAP4 email account
<Atomic>
<CmdID>100</CmdID>
<Add>
<CmdID>200</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">node</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
</Item>
</Add>
<Replace>
<CmdID>300</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/SERVICENAME</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>email acct 1</Data>
</Item>
</Replace>
<Replace>
<CmdID>400</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/SERVICETYPE</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>IMAP4</Data>
</Item>
</Replace>
<Replace>
<CmdID>500</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/INSERVER</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>IncomingServer1</Data>
</Item>
</Replace>
<Replace>
<CmdID>600</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/OUTSERVER</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>OutgoingServer1</Data>
</Item>
</Replace>
<Replace>
<CmdID>700</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/AUTHNAME</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>authname1</Data>
</Item>
</Replace>
<Replace>
<CmdID>800</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/AUTHSECRET</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>password1</Data>
</Item>
</Replace>
<Replace>
<CmdID>900</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/REPLYADDR</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>email1@microsoft.com</Data>
</Item>
</Replace>
<Replace>
<CmdID>1000</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/NAME</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>John Q. Doe1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1100</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/AUTHREQUIRED</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1200</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/DWNDAY</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>1</Data>
</Item>
</Replace>
<Replace>
<CmdID>1300</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/LINGER</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>60</Data>
</Item>
</Replace>
<Replace>
<CmdID>1400</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/RETRIEVE</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>999</Data>
</Item>
</Replace>
<Replace>
<CmdID>1500</CmdID>
<Item>
<Target><LocURI>./Vendor/MSFT/EMAIL2/{email account GUID}/DOMAIN</LocURI></Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
<Type xmlns="syncml:metinf">text/plain</Type>
</Meta>
<Data>Domain1</Data>
</Item>
</Replace>
</Atomic>
See Also
EMAIL2 Configuration Service Provider Examples for OMA DM | OMA DM Provisioning Files
Send Feedback on this topic to the authors