This topic provides information on how to use Newsletter in Sitefinity.
Web.config Changes
Following is the <notification> tag for the Notification provider which performs the connection with Sitefinity database:
| Declaring the Notification Provider |
Copy Code |
|
<notifications defaultProvider="Notifications">
<providers>
<clear />
<add
name="Notifications"
type="Telerik.Notifications.Data.DefaultProvider, Telerik.Notifications.Data"
connectionStringName="DefaultConnection"
/>
</providers>
</notifications>
|
Following is the <mailSettings> tag for the mail server. Modify the code to configure your SMTP:
| Mail Server |
Copy Code |
<system.net>
<mailSettings>
<smtp from="mailmaster@yourdomain.com">
<network host="smtp.yourdomain.com" userName="Your_Username" password="Your_Password" port="25" />
</smtp>
</mailSettings>
</system.net>
|
The following templates are set by default. In order to set different templates, add the corresponding property to the notification provider and insert the path to the new
template:
| Templates |
Copy Code |
|
commandPanelTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/CommandPanel.ascx"
newslettersTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/NewslettersTemplate.ascx"
groupsTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/GroupsTemplate.ascx"
subscribersTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/SubscribersTemplate.ascx"
cmsSubscribersTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/CMSSubscribersTemplate.ascx"
createNewsletterTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/CreateNewsletter.ascx"
newsletterContentTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/NewsletterContent.ascx"
newsletterPreviewTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/NewsletterPreview.ascx"
newsletterSendingMsgsTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/NewsletterSendingMsgs.ascx"
newsletterReportTemplate="~/Sitefinity/Admin/ControlTemplates/Notification/NewsletterReport.ascx"
|
See Also