GetUnsubscribeURL()

Syntax

Function GetUnsubscribeURL(Optional ByVal
customQueryStringParameterValue As String = "") As String

Parameters

ParameterDescription
customQueryStringParameterValueThe (optional) value of the custom parameter

Description

This method returns the URL of a Page on which the Contact can unsubscribe. You can use the customQueryStringParameterValue parameter to add one custom parameter, called custom, to the URL you create. The value of this custom parameter is the value of customQueryStringParameterValue. By using this parameter, you can, for example, add a Publication ID to the URL. The unsubscribe.aspx or unsubscribe.jsp page can then retrieve this Publication ID and change its behavior accordingly.

Example Template code

Do you want to unsubscribe?<br />
Click <a href='[% WriteOut OutboundEmail.GetUnsubscribeURL() %]'>here</a>