ZennoLab Assemblies Documentation
ValidateEmail(String,String,String,Int32,Boolean,Boolean,String) Method
Example 
ZennoLab.CommandCenter Namespace > ZennoPoster Class > ValidateEmail Method : ValidateEmail(String,String,String,Int32,Boolean,Boolean,String) Method

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 use IMAP; otherwise, false.

Type: System.String

Proxy string in format: login:[email protected]:port OR ip:port.

Validate Email address using extended parameters.
Syntax
public static void ValidateEmail( 
   string login,
   string pass,
   string server,
   int port,
   bool useSSL,
   bool useIMAP,
   string proxyString
)

Parameters

login

Type: System.String

The login for mail.

pass

Type: System.String

The password for mail.

server

Type: System.String

The mail server.

port

Type: System.Int32

The server port.

useSSL

Type: System.Boolean

true if use SSL; otherwise, false.

useIMAP

Type: System.Boolean

true if use IMAP; otherwise, false.

proxyString

Type: System.String

Proxy string in format: login:[email protected]:port OR ip:port.

Example
The following example shows call the ValidateEmail method.
try 
{
    ZennoPoster.ValidateEmail({email}, {password}, {server}, {port}, true, true);
}
catch
{
    // Email not valid!
}
try 
{
    $res = ZennoPoster::ValidateEmail({email}, {password}, {server}, {port}, true, true);
}
catch(Exception $e)
{ 
    // email not valid 
}
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster Class
ZennoPoster Members
Overload List
MailConfirm Method