{CompanyName} FlexyGo

Mail..::..SendTemplateMail Method (String, String, String, String, String, List<(Of <(<'Attachment>)>)>, String, SmtpClient, EntityObject, String, String, String, String)

Sends the template mail.

Namespace:  FLEXYGO.Mails
Assembly:  flxMail (in flxMail.dll)

Syntax


public static bool SendTemplateMail(
	string EMail,
	string subject,
	string HTMLBody,
	string TextBody,
	string TemplateName,
	List<Attachment> ReportsList,
	string From,
	SmtpClient SmtpServer,
	EntityObject Entity,
	string ReplyTo,
	string CC,
	string FromName,
	string CCO
)
Public Shared Function SendTemplateMail ( _
	EMail As String, _
	subject As String, _
	HTMLBody As String, _
	TextBody As String, _
	TemplateName As String, _
	ReportsList As List(Of Attachment), _
	From As String, _
	SmtpServer As SmtpClient, _
	Entity As EntityObject, _
	ReplyTo As String, _
	CC As String, _
	FromName As String, _
	CCO As String _
) As Boolean

Parameters

EMail
Type: String
The email.
subject
Type: String
The subject.
HTMLBody
Type: String
The html body.
TextBody
Type: String
The text body.
TemplateName
Type: String
Name of the template.
ReportsList
Type: List<(Of <(<'Attachment>)>)>
A list of crystal report document attachments
From
Type: String
Mail sender email
SmtpServer
Type: SmtpClient
An specifc SmtpClient
Entity
Type: FLEXYGO.Objects..::..EntityObject
Entity to parse properties.
ReplyTo
Type: String
Reply to.
CC
Type: String
CC.
FromName
Type: String
CCO
Type: String
CCO or BCC.

Return Value

true if mail was sent, false otherwise.

Exceptions


ExceptionCondition
ExceptionCould Not send template mail