Class EmailSenderServiceExtensions
An email sender service extensions.
Inheritance
System.Object
EmailSenderServiceExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Mail.Services
Assembly: Kephas.Mail.dll
Syntax
public static class EmailSenderServiceExtensions
Methods
| Improve this Doc View SourceSendAsync(IEmailSenderService, String, String)
An IEmailSenderService extension method that sends an email asynchronously.
Declaration
public static Task SendAsync(this IEmailSenderService senderService, string subject, string body)
Parameters
Type | Name | Description |
---|---|---|
IEmailSenderService | senderService | The senderService to act on. |
System.String | subject | The subject. |
System.String | body | The body. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An asynchronous result. |
SendAsync(IEmailSenderService, String, String, String)
An IEmailSenderService extension method that sends an email asynchronously.
Declaration
public static Task SendAsync(this IEmailSenderService senderService, string toAddress, string subject, string body)
Parameters
Type | Name | Description |
---|---|---|
IEmailSenderService | senderService | The senderService to act on. |
System.String | toAddress | To address. |
System.String | subject | The subject. |
System.String | body | The body. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An asynchronous result. |
SendAsync(IEmailSenderService, String[], String, String)
An IEmailSenderService extension method that sends an email asynchronously.
Declaration
public static Task SendAsync(this IEmailSenderService senderService, string[] toAddresses, string subject, string body)
Parameters
Type | Name | Description |
---|---|---|
IEmailSenderService | senderService | The senderService to act on. |
System.String[] | toAddresses | To addresses. |
System.String | subject | The subject. |
System.String | body | The body. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An asynchronous result. |