MailBee.NET Objects 4.0

SmtpServer Class

Represents an SMTP relay server to which the mail messages will be sent.

For a list of all members of this type, see SmtpServer Members.

System.Object
   MailBee.SmtpMail.SmtpServer

public class SmtpServer

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This class is used to specify an SMTP relay server the mail messages should be submitted to. Another type of SMTP server is SMTP MX server which is a server which accepts mail for a particular domain. When the mail message is submitted to SMTP relay server, the relay server performs the following operations:

In other words, SMTP relay server dispatches the mail message received from the client, to the SMTP MX servers of the target recipients.

To specify SMTP relay server in your application, call mailer.SmtpServers.Add method (assuming mailer is an instance of Smtp class).

Note   When MailBee is used in direct send mode (by performing DNS MX lookup against DNS servers in DnsServers collection), MailBee itself acts as SMTP relay server, and dispatches the mail message to the MX servers of recipients domains.

Example

Another example of specifying SMTP relay server in the application is available at SslMode topic.

Requirements

Namespace: MailBee.SmtpMail

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

SmtpServer Members | MailBee.SmtpMail Namespace