Skip to content

Pact Email EmailSender SendEmailAsync(string string string MimePart )

welshronaldo edited this page May 30, 2022 · 5 revisions

EmailSender.SendEmailAsync(string, string, string, 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, params MimePart[] attachments);

Parameters

recipients System.String
Comma-separated list of recipients

subject System.String
The Subject of the email

message System.String
The Body of the email (HTML)

attachments MimeKit.MimePart[]
Any files to attach

Returns

System.Threading.Tasks.Task

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

Clone this wiki locally