Show / Hide Table of Contents

Interface IEmailSender

Provides an abstraction for a service that send e-mails.

Namespace: IRM.Mail
Assembly: IRM.dll
Syntax
public interface IEmailSender

Methods

SendEmailAsync(IEnumerable<EmailAddress>, String, String, String, IEnumerable<FileAttachment>, IEnumerable<EmailAddress>, Action<Object>)

Sends an e-mail message to one or more receivers.

Declaration
Task SendEmailAsync(IEnumerable<EmailAddress> receivers, string subject, string message, string htmlMessage = null, IEnumerable<FileAttachment> attachments = null, IEnumerable<EmailAddress> cc = null, Action<object> createMailMessageCallback = null)
Parameters
IEnumerable<EmailAddress> receivers

A collection of e-mail addresses that should receive the e-mail.

String subject

The subject of the email.

String message

The e-mail message as simle text (body).

String htmlMessage

The e-mail message as html (body).

IEnumerable<FileAttachment> attachments

A collection of attachments to be included with the e-mail message.

IEnumerable<EmailAddress> cc

A collection of e.mail addresses that should get a copy of the e-mail.

System.Action<Object> createMailMessageCallback

A callback where caller can set additional MailMessage properties.

Returns
System.Threading.Tasks.Task

The task object representing the asynchronous operation.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
EmailSenderExtensions.SendEmailAsync(IEmailSender, EmailAddress, String, String, String, IEnumerable<FileAttachment>, IEnumerable<EmailAddress>, Action<Object>)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX