MailServiceConstructMessage Method (String, String, String, String, String, String, Boolean, Attachment, SendEmailFlags) |
Prepare a message for sending. This is to allow email senders using the safer Send() methods to first get the
message in a format suitable for events on a mapper.
Namespace:
NetQuarry.Services
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static MailMessage ConstructMessage(
string from,
string to,
string cc,
string bcc,
string subject,
string messageText,
bool bodyIsHtml,
Attachment[] attachments,
SendEmailFlags flags
)
Public Shared 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
) As MailMessage
Parameters
- from
- Type: SystemString
The address of the email sender. - to
- Type: SystemString
The address of the email recipient(s). - cc
- Type: SystemString
An optional list of email addresses to be included in the CC (Carbon Copy) line. - bcc
- Type: SystemString
An optional list of email addresses to be included in the BCC (Blind Carbon Copy) line. - subject
- Type: SystemString
The subject of the email. - messageText
- Type: SystemString
The body of the message to send. - bodyIsHtml
- Type: SystemBoolean
Specifies whether or not the messageText is HTML vs. raw text. - attachments
- Type: System.Net.MailAttachment
An optional array of mail attachments. - flags
- Type: NetQuarry.ServicesSendEmailFlags
Options regarding how the email is to be sent.
Return Value
Type:
MailMessageThe constructed MailMessage object.
See Also