Mailing_OnUrlClicked

The Mailing_OnUrlClicked event occurs when a receiver  has clicked on a link within a tracked mail content or when a mail content was opened. 

Syntax

Sub Mailing_OnUrlClicked()
. . .
End Sub

Remarks

The Record collection exposes all fields that where selected in the Tracking fields setting. 
You may use the Request.ServerVariables method to query information about the clicked URL and various other details:
Request.ServerVariables("URL") : Returns the URL that was clicked. If the URL is equal to "open" then it indicates that the user has opened the email in it's mail client.
Request.ServerVariables("URL_NAME") : Returns the link name.
Request.ServerVariables("REMOTE_ADDR") : Returns the IP address of the receiver who has clicked on the link.
Request.ServerVariables("HIT_DATE") : Returns the date of the link click or message opening.
Request.ServerVariables("HTTP_REFERER") : Returns a string containing the URL of the page that referred the request to the redirector.
Request.ServerVariables("HTTP_USER_AGENT") : Returns a string describing the client mail software that sent the request.

Example

Sub Mailing_OnUrlClicked()
   
If Record.Email = "jim@emilltest.com" and Request.ServerVariables("URL") = "open" Then
        Mailing.AppendToLog "Jim has opened our mail"
    End If
End Sub

See Also

Record collection, Request.ServerVariables 



©2001-2015 eMill. All trademarks property of their owners.