SmtpServerCollectionAdd Method (String) |
Adds a top (0) priority SMTP relay server under the specified host name (or IP address string) to the collection
and sorts the collection according to the elements priorities.
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public SmtpServer Add(
string serverName
)
Public Function Add (
serverName As String
) As SmtpServer
Parameters
- serverName
- Type: SystemString
The host name or IP address string of the SMTP relay server to be added to the collection.
The value cannot be a null reference (Nothing in Visual Basic).
Return Value
Type:
SmtpServerA reference to
SmtpServer object which was created
based on the given parameter values and then added to the collection.
Exceptions See Also