Skip to content

Pact Email EmailSender SendEmailAsync(string string string MailboxAddress MailboxAddress MimePart )

welshronaldo edited this page May 30, 2022 · 5 revisions

EmailSender.SendEmailAsync(string, string, string, MailboxAddress, MailboxAddress, MimePart[]) Method

Compile and send an email using whichever transport service has been registered (or just log if none)

public System.Threading.Tasks.Task SendEmailAsync(string recipients, string subject, string message, MailboxAddress from, MailboxAddress sender, params MimePart[] attachments);

Parameters

recipients System.String

subject System.String

message System.String

from MimeKit.MailboxAddress

sender MimeKit.MailboxAddress

attachments MimeKit.MimePart[]

Returns

System.Threading.Tasks.Task

Implements SendEmailAsync(string, string, string, MailboxAddress, MailboxAddress, MimePart[])

Clone this wiki locally