Newsletter Signup Forms
The form below will add a new subscribed contact to your database, and display a pop-up message on success.
The attribute ContactMode="register" is set on the <ss:forms:form> control, which will register a new contact, and throw a validation
error if the contact already exists.
Request Marketing Consent
Contacts added to your database via other forms (such as contact forms), will be aded with the e-mail marketing status "Pending" to flag inferred consent.
Adding to the previous contact enquiry form article, you can explicitly ask users whether they want to receive e-mail newsletters, and set their e-mail marketing status to "subscribed" (line 12-14):