Implementing subscription
The subscription webpage displays a form in which a user can enter an email address, a name and a password. The subscription page performs basic validation on the form fields, and creates a new Contact record.
The following image shows the sample subscribe page:
- It stores the identifier that was used when the webpage saved the Contact. The identifier is called Subscribed in the sample files, and in the illustration it is Subscribed-EN for an English publication.
- It synchronizes the Contact with Content Manager.
- It checks the identifier in the configuration file (OutboundEmail.xml) to find out if a confirmation email should be sent to the Contact. By default the sample subscription model includes a confirmation email.
- It sends the email based on the configured Page, subject, sender address and so on.
- The confirmation email Page includes a link to the subscription confirmation webpage.
Implement or customize subscriptions as follows:
- For ASP.NET websites—modify or customize the
subscribe.aspxand thesubscribe.aspx.cspages and deploy them on your website - For JSP websites—modify or customize the
subscribe.jsppage and deploy it on your website
To create a confirmation page to send as an email to a Contact, you use the Add Subscription URLs to Package Template Building Block in your Page Template.
Add code to your Page Template to insert links to your page using the Modular Templating Framework:
- To the Dreamweaver Template, add an
AudienceManager_ConfirmURLmethod to create a link to the webpage in which a new subscriber confirms their subscription. For a confirmation this is an example, where the URL is found in the your Audience Management tab of the Publication properties.<a href="@@AudienceManager_ConfirmURL@@">Click here to confirm subscription</a> - Define a query string in the Confirm URL Query String parameter to add to the Confirm Subscription URL. The Subscription confirmation page URL is the URL of the webpage in which a new subscriber confirms their subscription and is defined in a Publication's properties in the Audience Management tab.
You need to record the TCM URI of the newly created confirmation page for configuring confirmation in Audience Manager. For Cloud users, this configuration step for confirmation emails is something you need to request from SDL Customer Support.