Table of Contents

Class MailBox

Namespace
SunamoMail
Assembly
SunamoMail.dll

Static mailbox wrapper for sending emails via Google Apps mailbox.

public class MailBox
Inheritance
MailBox
Inherited Members
Extension Methods

Properties

Mailbox

Gets or sets the shared Google Apps mailbox instance.

public static GoogleAppsMailbox? Mailbox { get; set; }

Property Value

GoogleAppsMailbox

Methods

SendEmail(string, string, string, bool, string, string, params string[])

Sends an email using the first recipient address as reply-to.

public static string SendEmail(string to, string cc, string bcc, bool isUsingFirstRecipientAsReplyTo, string subject, string htmlBody, params string[] attachments)

Parameters

to string

Recipient email address(es), semicolon-separated for multiple.

cc string

Carbon copy email address(es), semicolon-separated for multiple.

bcc string

Blind carbon copy email address(es), semicolon-separated for multiple.

isUsingFirstRecipientAsReplyTo bool

Whether to use the first recipient as the reply-to address.

subject string

Email subject line.

htmlBody string

HTML-formatted email body content.

attachments string[]

Optional file paths to attach to the email.

Returns

string

Returns "success" on successful send, or "error: [message]" on failure.

SendEmail(string, string, string, string, string, string, params string[])

Sends an HTML email with explicit reply-to address.

public static string SendEmail(string to, string cc, string bcc, string replyTo, string subject, string htmlBody, params string[] attachments)

Parameters

to string

Recipient email address(es), semicolon-separated for multiple.

cc string

Carbon copy email address(es), semicolon-separated for multiple.

bcc string

Blind carbon copy email address(es), semicolon-separated for multiple.

replyTo string

Reply-to email address, or empty string to use the from address.

subject string

Email subject line.

htmlBody string

HTML-formatted email body content.

attachments string[]

Optional file paths to attach to the email.

Returns

string

Returns "success" on successful send, or "error: [message]" on failure.