| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class : MailConfirm Method |
Type: System.String
Timeout specified in seconds. Three in a row above the number recorded by ";".
Type: System.String
The login for mail.
Type: System.String
The password for mail.
Type: System.String
The mail server.
Type: System.Int32
The server port.
Type: System.Boolean
true if use SSL; otherwise, false.
Type: System.Boolean
true if parse HTML; otherwise, false.
Type: System.Boolean
true if use IMAP; otherwise, false.
Type: System.Boolean
true if remove messages; otherwise, false.
Type: System.String
The regular expression to identify email.
Type: System.String
The regular expression for select the contents of email.
Type: System.Int32
Number of match.
Type: System.Boolean
true if need to throw exceptions; otherwise and default, false. Standart types of exeption contains in CommandCenter.Exceptions.Mail namespace.
Type: System.String[]
An array of names of imap folders.
Type: System.String
Proxy string in format: login:pass@ip:port OR ip:port.
public static string MailConfirm( string timeoutSec, string login, string pass, string server, int port, bool useSSL, bool useHTML, bool useIMAP, bool removeMessages, string identityRegExp, string parserRegExp, int machNum, bool throwsException, string[] imapFolderNames, string proxyString )
Type: System.String
Timeout specified in seconds. Three in a row above the number recorded by ";".
Type: System.String
The login for mail.
Type: System.String
The password for mail.
Type: System.String
The mail server.
Type: System.Int32
The server port.
Type: System.Boolean
true if use SSL; otherwise, false.
Type: System.Boolean
true if parse HTML; otherwise, false.
Type: System.Boolean
true if use IMAP; otherwise, false.
Type: System.Boolean
true if remove messages; otherwise, false.
Type: System.String
The regular expression to identify email.
Type: System.String
The regular expression for select the contents of email.
Type: System.Int32
Number of match.
Type: System.Boolean
true if need to throw exceptions; otherwise and default, false. Standart types of exeption contains in CommandCenter.Exceptions.Mail namespace.
Type: System.String[]
An array of names of imap folders.
Type: System.String
Proxy string in format: login:pass@ip:port OR ip:port.
Type: System.String
The result of processing emails.
try { var res = ZennoPoster.MailConfirm("15;30;60", {email}, {password}, {server}, {port}, true, true, true, false, {identityRexExp}, {parseRegExp}, 0, true); } catch(CommandCenter.Exceptions.Mail.ConnectionException ex) { // do something when connection to server failed } catch(CommandCenter.Exceptions.Mail.InvalidEmailCredentialException ex) { // do something when login/password was wrong } catch(CommandCenter.Exceptions.Mail.EmailNotFoundException ex) { // do something when email has not been found } catch(Exception ex) { // other exceptions }
$res = ZennoPoster::MailConfirm("15;30;60", {email}, {password}, {server}, {port}, true, true, true, false, {identityRexExp}, {parseRegExp}, 0);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.