Android email self-adaptation

Source: Internet
Author: User
Tags imap


Requirements:
If you need to preset parameters of some Email service accounts to the Email Client, such
The email domain names are mail.ru, list.ru, inbox.ru, bk.ru, and corp.mail.ru. The following parameters are adaptive:
Incoming Server: imap.mail.ru
Incoming Server Port: 993
Ssl on the incoming server: enabled
Username: full email user
Outgoing Server: smtp.mail.ru
Outgoing server port: 465
Ssl on the outgoing server: enabled
Protocol: IMAP4


Solution:
Custom preset mailbox Configuration:
First, you may need to configure the incoming and outgoing URIs in Email/res/xml/providers. xml.
The URI consists of the following parts:
Protocol type + Security type +: // server address.
Server port does not need to be configured, because it is determined by the protocol type and whether SSL is used.
If you need to use SSL, you do not need to add the trustallcerts part during configuration. You should configure it to imap + ssl +: // imap.163.com
The configuration of Protocol is the Protocol type mentioned above, and the server address section should correspond to the Protocol type.

Modify path:

Packages/apps/Email/res/xml/providers. xml

PS: the solution is as follows:

Add at the end of the provider. xml file

      
         
          
      
          
         
          
      
       
         
          
      
       
         
          
      
       
         
          
      
  


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.