C# Класс SendGrid.Transport.SMTP

Transport class for delivering messages via SMTP
Наследование: ITransport
Показать файл Открыть проект

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

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