C# 클래스 SendGrid.Transport.SMTP

Transport class for delivering messages via SMTP
상속: ITransport
파일 보기 프로젝트 열기: advancedrei/sendgridplus-csharp

공개 메소드들

메소드 설명
DeliverAsync ( IMail message ) : System.Threading.Tasks.Task

Deliver an email using SMTP protocol

GetInstance ( NetworkCredential credentials, string host = SmtpServer, Int32 port = Port ) : SMTP

Transport created to deliver messages to SendGrid using SMTP

비공개 메소드들

메소드 설명
Deliver ( IMail message ) : void
GetInstance ( ISmtpClient client, NetworkCredential credentials, string host = SmtpServer, Int32 port = Port ) : SMTP

For Unit Testing Only!

SMTP ( ISmtpClient client, NetworkCredential credentials, string host = SmtpServer, int port = Port ) : System

Transport created to deliver messages to SendGrid using SMTP

메소드 상세

DeliverAsync() 공개 메소드

Deliver an email using SMTP protocol
public DeliverAsync ( IMail message ) : System.Threading.Tasks.Task
message IMail
리턴 System.Threading.Tasks.Task

GetInstance() 공개 정적인 메소드

Transport created to deliver messages to SendGrid using SMTP
public static GetInstance ( NetworkCredential credentials, string host = SmtpServer, Int32 port = Port ) : SMTP
credentials System.Net.NetworkCredential Sendgrid user credentials
host string MTA recieving this message. By default, sent through SendGrid.
port System.Int32 SMTP port 25 is the default. Port 465 can be used for Secure SMTP.
리턴 SMTP