GetUnsubscribeURL()
Use this method to get the URL of the Page where a Contact can unsubscribe.
Syntax
Function GetUnsubscribeURL(Optional ByVal
customQueryStringParameterValue As String = "") As String
Parameters
| Parameter | Description |
|---|---|
customQueryStringParameterValue | The (optional) value of the custom parameter |
Description
This method returns the URL of a Page where a 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>