Click or drag to resize
EmailQueueManagerSendEmail Method (EmailQueueItemInfo, NewsletterInfo, IssueInfo, EmailTemplateInfo, String, String, String, Boolean)
Sends specified e-mail from the newsletter queue, failed e-mail is updated with ErrorMessage information.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax
C#
public static bool SendEmail(
	EmailQueueItemInfo email,
	NewsletterInfo newsletter,
	IssueInfo issue,
	EmailTemplateInfo template,
	string appPath,
	string siteName,
	string siteDomain,
	bool deleteSent
)

Parameters

email
Type: CMS.NewslettersEmailQueueItemInfo
E-mail to be sent
newsletter
Type: CMS.NewslettersNewsletterInfo
Newsletter object (optional)
issue
Type: CMS.NewslettersIssueInfo
Issue object (optional)
template
Type: CMS.NewslettersEmailTemplateInfo
Email template (optional)
appPath
Type: SystemString
Application path
siteName
Type: SystemString
Site name
siteDomain
Type: SystemString
Site domain
deleteSent
Type: SystemBoolean
Indicates if successfully sent e-mail should be deleted from the newsletter queue

Return Value

Type: Boolean
Returns true if e-mail has been successfully send
See Also