Class MailReceivers

java.lang.Object
com.codename1.backend.mail.MailReceivers

public final class MailReceivers extends Object

Opens the MailReceiver a configuration names.

Setting Default
cn1.mail.store.protocol imap or pop3
cn1.mail.store.host the mail server
cn1.mail.store.port 993 or 995; 143 or 110 when not tls
cn1.mail.store.username, cn1.mail.store.password credentials
cn1.mail.store.accessToken IMAP only: an OAuth 2 access token, sent with AUTHENTICATE XOAUTH2 instead of the password
cn1.mail.store.auth login IMAP only: login, or plain for AUTHENTICATE PLAIN
cn1.mail.store.security tls tls from the first byte, starttls, or none
cn1.mail.store.allowInsecureAuth false send credentials over a connection that is not encrypted
cn1.mail.store.caFile a certificate file to trust instead of the system's
cn1.mail.store.connectTimeout 10000 milliseconds
cn1.mail.store.readTimeout 60000 milliseconds
cn1.mail.store.maxMessageSize 52428800 bytes; a larger message ends the fetch

As with SMTP, credentials are never sent in the clear unless allowInsecureAuth says so.