imapRead ( string mailServer , string login , string password , array _filterQuery , string|default:content _typeOfReturn , string|default:993 _port , array _options ) : string/array
NOT WORKING!!! Read a mail by IMAP in the folder INBOX. The most recent is in first.
Tips
You can test TLS compatibility with this site : https://www.ssllabs.com/ssltest/Parameters
mailServer
Imap server.
imap.gmail.com SSL 993
imap-mail.outlook.com SSL 993
outlook.office365.com SSL 993
imap.mail.yahoo.com SSL 993
plus.imap.mail.yahoo.com SSL 993
imap.mail.yahoo.co.uk SSL 993
imap.aol.com SSL 993
imap.1and1.com SSL 993
imap.1und1.de SSL 993
imap.mail.com SSL 993
imap.gmx.com SSL 993
ssl0.ovh.net SSL 993
imap.gmail.com SSL 993
imap-mail.outlook.com SSL 993
outlook.office365.com SSL 993
imap.mail.yahoo.com SSL 993
plus.imap.mail.yahoo.com SSL 993
imap.mail.yahoo.co.uk SSL 993
imap.aol.com SSL 993
imap.1and1.com SSL 993
imap.1und1.de SSL 993
imap.mail.com SSL 993
imap.gmx.com SSL 993
ssl0.ovh.net SSL 993
login
password
_filterQuery (optional)
Inbox query to target your email. Please list all Example: ["DELETED",true] search all deleted messages
? ANSWERED - match messages with the \\ANSWERED flag set
? DELETED - match deleted messages
? FLAGGED - match messages with the \\FLAGGED (sometimesreferred to as Important or Urgent) flag set
? DRAFT - this message is a draft
? SEEN - match messages which have been read
? ANSWERED - match messages with the \\ANSWERED flag set
? DELETED - match deleted messages
? FLAGGED - match messages with the \\FLAGGED (sometimesreferred to as Important or Urgent) flag set
? DRAFT - this message is a draft
? SEEN - match messages which have been read
_typeOfReturn (optional)
? content - returns the content of the first message (by default)
? list - returns list all messages
? object - returns the javax.mail.Message object of the first message (see javadoc)
? list_objects - returns the javax.mail.Message object of all messages
? list - returns list all messages
? object - returns the javax.mail.Message object of the first message (see javadoc)
? list_objects - returns the javax.mail.Message object of all messages
_port (optional)
The IMAP port
? 143 - non crypted
? 993 - SSL / TLS
? 143 - non crypted
? 993 - SSL / TLS
_options (optional)
Imap options
Ex: [ ["mail.imap.timeout":5000],["mail.imap.auth.plain.disable":"true"],["mail.debug":"true"] ]
JavaMail API doc Java doc
Ex: [ ["mail.imap.timeout":5000],["mail.imap.auth.plain.disable":"true"],["mail.debug":"true"] ]
JavaMail API doc Java doc