MailServiceConstructMessage 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
)
Public Function ConstructMessage (
from As String,
to As String,
cc As String,
bcc As String,
subject As String,
messageText As String,
bodyIsHtml As Boolean,
attachments As Attachment(),
flags As SendEmailFlags,
templateName As String
) As MailMessage
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:
MailMessageA
MailMessage object. This method returns null if there are no valid addresses in the to, cc, or bcc list.
Implements
IEmailServiceConstructMessage(String, String, String, String, String, String, Boolean, Attachment, SendEmailFlags, String)See Also