ZennoLab Assemblies Documentation
ValidateEmail(String,String,String,Int32,Boolean,Boolean) Method
Example 

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.

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

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.

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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

ZennoPoster Class
ZennoPoster Members
Overload List
MailConfirm Method

Send Feedback