544 Part III: Developing E-mail Solutions Creating a (Yahoo web hosting)
544 Part III: Developing E-mail Solutions Creating a URL Tracking and Redirection Application When the campaign execution application sends e-mail, the URLs are transformed into the redirection URL. Figure 15-8 shows how such redirection URLs are tracked and redirected using the URL tracking application. Campaign Message URL Tracking Application Yes Show error message Start Is URL Request Valid? Locate URL target and redirect user to the target URL End No E-campaign Database Add track record in database Dear Joe, Thank you for visiting our Web site and filling out the inquiry form. Based on your interest we have identified the following resources for you. Please visit at your convenience. Click here to visit ROI Mail Thanks again! Kind Regards, PHP Team, EVOKNOW Click here to remove from future mailing Figure 15-8: How the URL tracking and redirection application works. The redir.php, which can be found in the ch15/apps directory in the CDROM, implements the tracking and URL redirection using the following methods. run() This method first determines if the redirection request mode is test or not. If the redirection mode is test, which is true during message preview, the redirectTest() method is called to redirect the tester to the target URL without recording the track in the database. If the mode is not test, the checksum value of the redirection request is compared with the calculated checksum. If both checksum values match, the redirection