Helper Library for sending emails

frmContentFormatMessage Method

Formats an email message

Definition

Namespace: MbcsMail
Assembly: MbcsMail (in MbcsMail.dll) Version: 1.0.0.1 (1.0.0.1)
C#
public bool FormatMessage(
	SmtpConfig Smtp,
	string body,
	string subject,
	string fromAddress,
	string[] toAddresses,
	string HeaderType,
	string attachment = "",
	bool useBCC = false,
	[OptionalAttribute] decimal size
)

Parameters

Smtp  SmtpConfig
Sender SMTP data
body  String
Body of message
subject  String
Subject of message
fromAddress  String
From Address
toAddresses  String
To Address
HeaderType  String
Optional message header
attachment  String  (Optional)
Optional attachment
useBCC  Boolean  (Optional)
Optional BCC addresses
size  Decimal  (Optional)
Maximum size of message

Return Value

Boolean
True on success, False on failure

See Also