Ipower web hosting - 518 Part III: Developing E-mail Solutions getClientDBURL() This

518 Part III: Developing E-mail Solutions getClientDBURL() This method returns the database URL for a given list. It retrieves the database information from the list record and constructs a database_type://user: password.tabase_hostname/database_name URL, which can be used to retrieve customer data. getTargetData() This method returns a list of row objects from the assembly table and then deletes the records from the assembly table. This method is used to fetch a specific number of rows from the assembly table for mail delivery. The returned array of rows uses REC_ID as the key and the row object as the value. addToBounced() This method inserts a record in the bounce e-mail table. This record is used in the report to determine how many e-mails bounced during delivery. When an e-mail is not bounced during delivery, it can still be bounced later after delivery by the recipient s target mail server, which may try to delivery it to an internal mail server within an organization. Therefore, the bounce tracking done in the e-campaign is not 100-percent accurate. In fact, if e-mail addresses aren t local to the mail server being used, the bounces usually aren t right away. This problem can be avoided in a future version of the e-campaign system. modifyMapList() This method allows you to modify the standard personalization field map for a given list. Creating a URL class The purpose of this class is to provide the URL object, which is needed to manipulate the URL. An implementation of this class can be found in ch15/apps/class/ class.EcampaignURL.php . This class implements the methods discussed in the following sections. EcampaignURL() This is the constructor method. It does the following: . Sets the url_tbl variable to the configuration variable called $ECAMPAIGN_URL_TBL, which holds the name of the URL table in the campaign database.

Leave a Reply