Connecting to an SMTP server |
To establish a connection to an SMTP server, first create an Smtp instance passing the hostname as an argument to the constructor, then invoke the Connect method.
Example This example creates an Smtp instance and invokes the connect method.
[C#] Smtp smtp = new Smtp("smtp.myserver.com"); smtp.Connect();
[VB] Dim mySmtp As Smtp = Nothing mySmtp = New Smtp("smtp.myserver.com") mySmtp.Connect()
|