C# Класс Castle.Core.Smtp.DefaultSmtpSender

Default IEmailSender implementation.
Наследование: IEmailSender
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CanAccessCredentials bool
Configure void
InternalSend void
Send void
Send void
Send void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

DefaultSmtpSender() публичный Метод

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
Результат System

DefaultSmtpSender() публичный Метод

This service implementation requires a host name in order to work
public DefaultSmtpSender ( string hostname ) : System
hostname string The smtp server name
Результат System