C# Class Castle.Core.Smtp.DefaultSmtpSender

Default IEmailSender implementation.
Inheritance: IEmailSender
Afficher le fichier Open project: Jarvin-Guan/CleanAOP Class Usage Examples

Private Properties

Свойство Type Description
CanAccessCredentials bool
Configure void
InternalSend void
Send void
Send void
Send void

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat System

DefaultSmtpSender() public méthode

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