IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
Each message job contains the information required for a message to be sent – actual message text, sender information, and recipient(s). The IMessageJobRequest interface defines the information needed for sending a message. The MessageJobRequestProxy class provides the implementation and you can use where the interface is required.
IMessageJobRequest
MessageJobRequestProxy
The processing of message jobs is an asynchronous operation - you are receiving the control immediately after calling the Notification service SendMessage method.
SendMessage
There are several ways that you can use to create a message job, depending on the settings you require, the sent content, and to the recipients. Here's a sample with minimum amount of code:
When you must create a mailing list before you send a message, you have two alternatives - create explicitly the mailing list or use dynamic mailing lists. For more information, see Mailing lists.
To create a mailing list before sending message, use the following code:
To use dynamic mailing lists, without explicitly creating one, use the following code:
In order to convert an existing mailing list into a dynamic subscription list, you can use the following code sample:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important