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

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

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

Return Value

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