EmailSender.SendMassEmails Method |
Creates mass e-mails in the e-mail queue for specified members.
Namespace: CMS.EmailEngineAssembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 12.0.0
Syntaxpublic static void SendMassEmails(
EmailMessage message,
string userIds,
string roleIds,
string groupIds,
int siteId,
bool sendToEveryone = false
)
Parameters
- message
- Type: CMS.EmailEngine.EmailMessage
E-mail message - userIds
- Type: System.String
User IDs separated by semicolon (;), could be 'null' - roleIds
- Type: System.String
Role IDs separated by semicolon (;), could be 'null' - groupIds
- Type: System.String
Group IDs separated by semicolon (;), could be 'null' - siteId
- Type: System.Int32
Site ID - sendToEveryone (Optional)
- Type: System.Boolean
Indicates if the e-mail should be send to generic role 'Everyone'; default value is FALSE
See Also