Click or drag to resize

IEmailServiceConstructMessage Method

Constructs a MailMessage object using the specified destination parameters including optional attachments and Template.

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
MailMessage ConstructMessage(
	string from,
	string to,
	string cc,
	string bcc,
	string subject,
	string messageText,
	bool bodyIsHtml,
	Attachment[] attachments,
	SendEmailFlags flags,
	string templateName
)

Parameters

from
Type: SystemString
The address of the e-mail sender
to
Type: SystemString
The address of the e-mail recipients
cc
Type: SystemString
A list of names to be included in the CC line.
bcc
Type: SystemString
A list of names to be included in the BCC line
subject
Type: SystemString
The subject of the email
messageText
Type: SystemString
The body of the message to send
bodyIsHtml
Type: SystemBoolean
The messageText param is HTML.
attachments
Type: System.Net.MailAttachment
Array of mail attachments.
flags
Type: NetQuarry.ServicesSendEmailFlags
Behavior flags
templateName
Type: SystemString
The name of a template associated with the mail message.

Return Value

Type: MailMessage
A MailMessage object. This method returns null if there are no valid addresses in the to, cc, or bcc list.
See Also