public static Tuple<string,string,string,string>[] BulkMailDownload( string login, string pass, string server, int port, bool useSSL, EmailProtocol protocol, int lastHours, int maxCount, bool deleteMessages, string proxyString, bool throwException )
Parameters
- login
Type: System.String
The login for mail (usualy your email address).
- pass
Type: System.String
The password for mail.
- server
Type: System.String
The mail server. Default value is blank, ZennoPoster will try to determine your the settings.
- port
Type: System.Int32
The server port. Default value is 143
- useSSL
Type: System.Boolean
true if use SSL; otherwise, false. Default value is true
- protocol
Type: ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol
IMAP or POP3. Default value is IMAP.
- lastHours
Type: System.Int32
If message older than specified amount of hours will not be returned. Default value is 2 hours
- maxCount
Type: System.Int32
Max count of messages. Default value is 100.
- deleteMessages
Type: System.Boolean
true if remove messages; otherwise, false. Default value is false.
- proxyString
Type: System.String
Proxy string in format: login:pass@ip:port OR ip:port.
- throwException
Type: System.Boolean
true if have to throw the error exception; otherwise, false. The default value is false.
Return Value
Type: System.Tuple
tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message with headers, tuple.Item4 - text message with headers