C# Class Castle.Core.Smtp.DefaultSmtpSender

Default IEmailSender implementation.
Inheritance: IEmailSender
Exibir arquivo Open project: Jarvin-Guan/CleanAOP Class Usage Examples

Private Properties

Property Type Description
CanAccessCredentials bool
Configure void
InternalSend void
Send void
Send void
Send void

Public Methods

Method Description
DefaultSmtpSender ( ) : System

Initializes a new instance of the DefaultSmtpSender class based on the SmtpClient configuration provided in the application configuration file.

This constructor is based on the default SmtpClient configuration in the application configuration file.

DefaultSmtpSender ( string hostname ) : System

This service implementation requires a host name in order to work

Private Methods

Method Description
CanAccessCredentials ( ) : bool
Configure ( SmtpClient smtpClient ) : void
InternalSend ( MailMessage message ) : void
Send ( IEnumerable messages ) : void
Send ( MailMessage message ) : void
Send ( String from, String to, String subject, String messageText ) : void

Method Details

DefaultSmtpSender() public method

Initializes a new instance of the DefaultSmtpSender class based on the SmtpClient configuration provided in the application configuration file.
This constructor is based on the default SmtpClient configuration in the application configuration file.
public DefaultSmtpSender ( ) : System
return System

DefaultSmtpSender() public method

This service implementation requires a host name in order to work
public DefaultSmtpSender ( string hostname ) : System
hostname string The smtp server name
return System