BuildMaster SDK Reference
Version:

BuildMasterSmtpClient Class

A simple wrapper around SmtpClient that defaults the SMTP settings to the values specified in configuration.

Inheritance Hierarchy

  • object
    • System.Net.Mail.SmtpClient
      • Inedo.BuildMaster.Web.BuildMasterSmtpClient

Syntax

public class BuildMasterSmtpClient : System.Net.Mail.SmtpClient, System.IDisposable

Constructors

Name Description
BuildMasterSmtpClient

Initializes a new instance of the BuildMasterSmtpClient class using the default configuration settings.

BuildMasterSmtpClient(string host, int port, string username, string password, bool enableSSL)

Initializes a new instance of the BuildMasterSmtpClient class using the specified SMTP settings.

Methods

Name Description
CreateMailMessage(string toEmailAddress)

Creates a mail message with the configured From address to the specified recipient.

CreateMailMessage(System.Collections.Generic.IEnumerable<string> toEmailAddresses)

Creates a mail message with the configured From address to the specified recipients.