Form for changing preferences
If you have numerous addresses in your database and send out newsletters on various topics, it would be good if your readers could manage these settings themselves.
If you use cobra, the new settings should also be automatically transferred to your CRM system.
This example will show you how to set up a form for changing user preferences, which is filled in automatically, requests a double opt-in if required and saves the data in your cobra at the end.
Create form
In [MNR_ProductName], go to the Forms area and create a new form with the "Preferences" template
We give the form the name Newsletter_Settings.
Our new form has been created.
It contains fields for entering first name, surname and email address, all of which are mandatory. Below these are three checkboxes and a DOI checkbox, which can be used to request a double opt-in.
There are two buttons: Sending sends the form with the newly entered data and triggers a double opt-in process if it is a new registration or if the e-mail address has been changed.
Log out adds the e-mail address to a blacklist so that it is excluded from future mailings. An address can be removed from a blacklist again with a new double opt-in.
Customize the form
We want to adapt the form a little to our purposes.
The checkboxes with the names Newsletter 1, Newsletter 2 and Newsletter 3 are renamed to events, Product information and Press releases.
In addition, each of the checkboxes is assigned the corresponding field in the database. In the following screenshot, the checkbox 'events' also the field 'events' assigned:
If the field does not yet exist, select New field... and then enter the new field name:
Save the form and close the editor. Your form is displayed in the list of your forms as follows:
An e-mail confirming your registration has been generated automatically. You may need to add your imprint here.
Add with e-mail you can add another e-mail that is sent automatically after the form has been sent. For example, you could send an email thanking them for updating the data.
Link form with newsletter
Next, we want to insert a link to our form in our newsletter, with which you can change your own settings. We will create a new newsletter for this.
At the bottom left there is a link with the inscription Unsubscribe from the newsletter:
Click with the mouse on the link Unsubscribe from the newsletter and change the text to 'Unsubscribe/change newsletter settings'. The hyperlink is set to the Newsletter_Settings form and the option Fill in with user data selected.
The option Fill in with user data ensures that all user data is filled in automatically when the link is clicked. This only works if the email address matches the address entry in the recipient list after a newsletter has been sent. This prevents an unauthorized person from viewing or changing the data of other recipients.
The link will not work in the preview or a test email, but only after a real mailing has been sent.
Note for cobra customers
If you use cobra, make sure that before sending the newsletter, all fields that are requested in the form have been checked with Create newsletter in the tab Personalization fields be transferred.