Click or drag to resize
EmailInfoProviderSetEmailInfo Method (EmailMessage, Int32, Boolean, String, Int32)
Creates new EmailInfo from EmailMessage.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 8.2.23
Syntax
C#
public static EmailInfo SetEmailInfo(
	EmailMessage message,
	int siteId,
	bool dontSend,
	string setName,
	int setRelatedId
)

Parameters

message
Type: CMS.EmailEngineEmailMessage
Email message
siteId
Type: SystemInt32
ID of the site
dontSend
Type: SystemBoolean
If true, e-mail status remains 'being created' so it could not be sent
setName
Type: SystemString
Allows to flag e-mail as a part of specific e-mail set, could be null
setRelatedId
Type: SystemInt32
ID for indication of the e-mail in specific set

Return Value

Type: EmailInfo
EmailInfo object
See Also