The Connection class allows you to create independent connections, which can be used by multiple messages. The parameters such as SMTP server name, port number, Authentication and others constitute a single connection. Almost all the properties will have its default value.
Below is an example of creating a Connection.
[Visual Basic]
' Create a Plain Text Message
Dim message As PlainTextMessage = New PlainTextMessage("from@company.com","to@company.com","Check message for Connection","Connection Check")
' Create a Connection
Dim MyConnection As Connection = New Connection("servername.com",175)
' Send the message with created Connection
message.Send(MyConnection)
[C#]
// Create a Plain Text Message
PlainTextMessage message = new PlainTextMessage( "from@company.com", "to@company.com", "Check message for Connection", "Connection Check" );
// Create a Connection
Connection connection = new Connection( "servername.com", 175 );
// Send the message with created Connection
message.Send( connection );
| See Also |
Connection Class | PlainTextMessage Class | Programming with FireMail for .NET

