C# 클래스 org.GraphDefined.Vanaheimr.Hermod.SMTP.SMTPClient

A SMTP client for sending e-mails.
상속: org.GraphDefined.Vanaheimr.Hermod.Sockets.TCP.TCPClient
파일 보기 프로젝트 열기: Vanaheimr/Hermod 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Capabilities SmtpCapabilities

공개 메소드들

메소드 설명
Dispose ( ) : void
SMTPClient ( String RemoteHost, IPPort RemotePort, String Login = null, String Password = null, String LocalDomain = null, System.Boolean UseIPv4 = true, System.Boolean UseIPv6 = false, System.Boolean PreferIPv6 = false, TLSUsage UseTLS = TLSUsage.STARTTLS, ValidateRemoteCertificateDelegate ValidateServerCertificate = null, System.TimeSpan ConnectionTimeout = null, DNSClient DNSClient = null, System.Boolean AutoConnect = false, CancellationToken CancellationToken = null ) : System

Create a new SMTP client for sending e-mails.

Send ( AbstractEMailBuilder MailBuilder, Byte NumberOfRetries = 3, System.Boolean AutoStart = true ) : Task
Send ( EMail EMail, Byte NumberOfRetries = 3, System.Boolean AutoStart = true ) : Task
Send ( EMailEnvelop EMailEnvelop, Byte NumberOfRetries = 3, System.Boolean AutoStart = true ) : Task

보호된 메소드들

메소드 설명
ReadSMTPResponses ( ) : IEnumerable
SendCommand ( String Command ) : void
SendCommandAndWait ( String Command ) : SMTPExtendedResponse
SendCommandAndWaits ( String Command ) : IEnumerable

비공개 메소드들

메소드 설명
GenerateMessageId ( EMail Mail, String DomainPart = null ) : MessageId
ReadSMTPResponse ( ) : SMTPExtendedResponse

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ReadSMTPResponses() 보호된 메소드

protected ReadSMTPResponses ( ) : IEnumerable
리턴 IEnumerable

SMTPClient() 공개 메소드

Create a new SMTP client for sending e-mails.
public SMTPClient ( String RemoteHost, IPPort RemotePort, String Login = null, String Password = null, String LocalDomain = null, System.Boolean UseIPv4 = true, System.Boolean UseIPv6 = false, System.Boolean PreferIPv6 = false, TLSUsage UseTLS = TLSUsage.STARTTLS, ValidateRemoteCertificateDelegate ValidateServerCertificate = null, System.TimeSpan ConnectionTimeout = null, DNSClient DNSClient = null, System.Boolean AutoConnect = false, CancellationToken CancellationToken = null ) : System
RemoteHost String
RemotePort IPPort
Login String
Password String
LocalDomain String
UseIPv4 System.Boolean Whether to use IPv4 as networking protocol.
UseIPv6 System.Boolean Whether to use IPv6 as networking protocol.
PreferIPv6 System.Boolean Prefer IPv6 (instead of IPv4) as networking protocol.
UseTLS TLSUsage Whether Transport Layer Security should be used or not.
ValidateServerCertificate ValidateRemoteCertificateDelegate A callback for validating the remote server certificate.
ConnectionTimeout System.TimeSpan The timeout connecting to the remote service.
DNSClient DNSClient An optional DNS client used to resolve DNS names.
AutoConnect System.Boolean Connect to the TCP service automatically on startup. Default is false.
CancellationToken System.Threading.CancellationToken
리턴 System

Send() 공개 메소드

public Send ( AbstractEMailBuilder MailBuilder, Byte NumberOfRetries = 3, System.Boolean AutoStart = true ) : Task
MailBuilder AbstractEMailBuilder
NumberOfRetries Byte
AutoStart System.Boolean
리턴 Task

Send() 공개 메소드

public Send ( EMail EMail, Byte NumberOfRetries = 3, System.Boolean AutoStart = true ) : Task
EMail org.GraphDefined.Vanaheimr.Hermod.Mail.EMail
NumberOfRetries Byte
AutoStart System.Boolean
리턴 Task

Send() 공개 메소드

public Send ( EMailEnvelop EMailEnvelop, Byte NumberOfRetries = 3, System.Boolean AutoStart = true ) : Task
EMailEnvelop org.GraphDefined.Vanaheimr.Hermod.Mail.EMailEnvelop
NumberOfRetries Byte
AutoStart System.Boolean
리턴 Task

SendCommand() 보호된 메소드

protected SendCommand ( String Command ) : void
Command String
리턴 void

SendCommandAndWait() 보호된 메소드

protected SendCommandAndWait ( String Command ) : SMTPExtendedResponse
Command String
리턴 SMTPExtendedResponse

SendCommandAndWaits() 보호된 메소드

protected SendCommandAndWaits ( String Command ) : IEnumerable
Command String
리턴 IEnumerable

프로퍼티 상세

Capabilities 공개적으로 프로퍼티

public SmtpCapabilities Capabilities
리턴 SmtpCapabilities