Share via


Creating an IMAP4 Account Example for OMA Client Provisioning

Send Feedback

The following example shows how to use the EMAIL2 Configuration Service Provider to create an IMAP account. This example also shows how to use the EMAIL2 Configuration Service Provider to enable SSL for the incoming and outgoing server.

You can use this XML code as a template for creating your own provisioning documents. Copy and paste the code into a blank text file, edit the characteristic and parm elements to suit your needs, then save it with an XML extension.

Code Example

<wap-provisioningdoc>
      <characteristic type="EMAIL2">
            <characteristic type="{GUID}">
            <parm name="SERVICENAME" value="Example IMAP"/>
            <parm name="SERVICETYPE" value="IMAP4"/>
            <parm name="INSERVER"    value="imapmail.example.com"/>
            <parm name="OUTSERVER"   value="mailto.example.com"/>
            <parm name="NAME"        value="Your name" />
            <parm name="AUTHNAME"    value="yourmailloginname"/>
            <parm name="AUTHSECRET"  value="password"/>
            <parm name="DOMAIN"      value=""/>
            <parm name="REPLYADDR"   value="yourmailname@example.com"/>
            <parm name="LINGER" value="15" />
            <parm name="RETRIEVE" value="2048" />
            <parm name="KEEPMAX" value="25" />
            <parm name="DWNDAY" value="3" />
 <!-- "DWNDAY" value="3": retrieve messages only retrieved on inbox within last 3 days-->
 <!-- "KEEPMAX" value="25": max of 25 email will be retieved -->
 <!-- "RETRIEVE" value="2048": only 2k of each email will retrieved at the begin, aftherwards automatic download of the email
 (it's also possibe to set retrieving to: header only) --> 
            <parm name="AUTHREQUIRED" value="1" />
<!-- Note the "AUTHREQUIRED" value="1": SMTH authentication is required by server, using the username and password from account for loging-->
<!-- Note the "AUTHREQUIRED" value="0": NO SMTH authentication is required by server -->
<!-- Note the "SMTPALTENABLED" value="1": SMTH authentication is required by server, using  username and password from different account for logging 
(parameter only nessecary in this case)-->
            <parm name="SMTPALTENABLED" value="1"/>
            <parm name="SMTPALTAUTHNAME" value="yourmailnameauth"/>
            <parm name="SMTPALTPASSWORD" value="smtpauthpassword"/>
            <parm name="SMTPALTDOMAIN" value="smtpauthdomain"/>
          </characteristic>
      </characteristic>
  <characteristic type="EMAIL2"> 
    <characteristic type="{GUID}">
      <parm name="SERVICENAME" value="example.com"/>
      <parm name="SERVICETYPE" value="POP3"/>
      <parm name="INSERVER" value="myemail.example.com"/>
      <parm name="OUTSERVER" value="myemail.example.com"/>
      <parm name="AUTHREQUIRED" value="1"/>
      <characteristic type="TAGPROPS">
        <parm name="8128000B" value="1"/>
        <parm name="812C000B" value="1"/>
      </characteristic>
      <parm name="AUTHNAME" value="someone@example.com"/>
      <parm name="AUTHSECRET" value="password"/>
      <parm name="REPLYADDR" value="someone@example.com"/>
    </characteristic>
  </characteristic>
</wap-provisioningdoc>

See Also

EMAIL2 Configuration Service Provider Examples for OMA Client Provisioning

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.