Click or drag to resize

MailService.ConstructMessage Method (String, String, String, String, String, String, Boolean,Attachment[], SendEmailFlags, String)

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
public 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: System.String
The address of the e-mail sender
to
Type: System.String
The address of the e-mail recipients
cc
Type: System.String
A list of names to be included in the CC line.
bcc
Type: System.String
A list of names to be included in the BCC line
subject
Type: System.String
The subject of the email
messageText
Type: System.String
The body of the message to send
bodyIsHtml
Type: System.Boolean
The messageText param is HTML.
attachments
Type:System.Net.Mail.Attachment[]
Array of mail attachments.
flags
Type: NetQuarry.Services.SendEmailFlags
Behavior flags
templateName
Type: System.String
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.

Implements

IEmailService.ConstructMessage(String, String, String, String, String, String, Boolean,Attachment[], SendEmailFlags, String)
See Also