Web Marketing Tool
Reseller
Chris B.
AutoResponder
Login

AutoResponder


An object for adding, viewing, editing and deleting a specific auto responder email message.
Filename: /admin/tools/WMT\SQL\EmailMarketing.php
Database Table: emailautoresponders
Extends: Result
      Extends: AbstractDatabase


AutoResponder PHP Methods

add($postVals) v4.23

Adds a new record. The $postVals is an array of the values for each column when adding the record. Returns 0 if fails, returns the id of the new record if success.

addFooter($member, $contact) v4.03

Adds the address/optout/report spam footer to the bottom of the autoresponder message that will be emailed. This footer is needed to ensure that the message is CAN-SPAM compliant. |
$member = A Member object for the member sending the email. |
$contact = A Contact object for the contact receiving the email.

addToEmailsSent($aID, $cID) v4.03

Inserts a record into the emailssent database table that this message was sent to the contact indicated. |
$aID = The id of the member sending the message. |
$cID = The id of the contact the message is sent to.

convertHTML($htmlContent = '') v4.23

Converts ~~ variables in the $htmlContent that is provided and returns the converted content. The title of the ~~ variables are converted by the content from the column in the database with the matching title.

deleteThis($restoreQuery = '') v4.23

Deletes the loaded record from the database. |
$restoreQuery = FOR INTERNAL USE. FOR TYPICAL USAGE LEAVE THIS BLANK. The restore query to pass along when deleting an object with dependencies.

duplicateThis($newValues = null) v4.92

Creates a duplicate record in the database of the current object and returns the id of the new record.

getAID() v4.03

Returns the ID of the member that owns this autoresponder.

getBlockList() v4.03

Returns a comma separated list (string) of email addresses from the ones that were included in the construct that are on the block list.

getBody($member, $contact) v4.03

Returns the body (string) of the autoresponder message. ~~ values are converted in the value that is returned.

getDay() v4.03

Returns the day (integer) that the autoresponder should be sent. The day is the amount of days since the contact's groupchanged date.

getDefaultTRHTML() v4.23

Returns the default html code for a tr row with all of the fields from the database in it as ~~ vars

getGroup() v4.03

Returns the id of the Contact Group that this autoresponder belongs to.

getID() v4.03

Returns the ID of the autoresponder.

getSubject($affiliate, $lead) v4.03

Returns the subject (string) of the autoresponder message. ~~ values are converted in the value that is returned.

getValue($fieldName) v4.23

Returns the value from a specific column for this record. |
$fieldName = The name of the column to get the value from.

hideAllFields() v4.23

Hides all of the columns (fields) from the database table from being returned in the results.

hideField($fieldTitle) v4.23

Hides a specific column (field) from the database table from being returned in the results.

loadMember($aID) v4.92

loadMessage($day, $aID, $group) v4.03

Loads this object with the values of an autoresponder message for a specific day/member/contact group. If the member does not own a message belonging to the group/day then it loads the admin's message. Returns the id of the autoresponder if successful. Returns 0 if it fails. |
$day = The day the message belongs to.
$aID = The id of the member that owns the autoresponder message.
$group = The id of the contact group that the message belongs to.

loadMessageID($arID) v4.03

Loads this object with the autoresponder message with the specified ID.

loadResults($results, $row) v4.03

Loads this object with the content of the mysql results. |
$results = A mysql Resource from a mysql_query() statement. |
$row = The row from the results to load the object with.

loadValues($id) v4.23

Loads values for the record with the id specified. Returns 0 if not found, 1 if success

loadValuesWhere($whereString = 'id=1') v4.23

Loads values for the record matching the criteria specified by $whereString. If the there is more than one record returned from the query then only the first record is loaded. Returns 0 if not found, 1 if success. |
$whereString = The condition to use to filter the results. Should be mysql format.

notARorBroadcast() v4.03

Indicates that this autoresponder message is not a broadcast message nor an autoresponder message (Can happen if the autoresponder object is manually loaded with values that are not in the database). This is used to determine what type of criteria to use for blocking messages to certain email addresses.

save($postVals) v4.23

Saves the record with the new values specified in the $postVals array. |
$postVals = An array containing the values to be stored. The key of the array is used for the column name and the value of the array is the value to be stored in that column.

sendEmail($lcMail, $member, $contact) v4.03

Sends an email with the autoresponder message. |
$lcMail = An lcMail object. |
$member = A Member object for the member sending the email. |
$contact = A Contact object for the contact receiving the email.

setEmailType($eType) v4.03

Specifies what type of email to send (html or text). |
$eType = 1 for text, 2 for html

showAllFields() v4.23

Shows all the columns (fields) from the database table in the results that are returned.

showField($fieldTitle) v4.23

Shows a specific column (field) from the database table in the results that are returned.

__construct($emailList, $blockType) v4.03

construct

AutoResponder PHP Variables

$body v4.03

The message of the autoresponder (content of the email).

$subject v4.03

The subject of the autoresponder email.


Columns in the emailautoresponders Database Table:

id    subject    body    day    member    contactgroup    countdown    textbody    allowdownlinecopy    active    calendar    membership    

Code Example

Use the code below to view a record in an html page:

Use the code below to add a record:

Use the code below to delete a record:



webmarketingtool.com Webutation DMCA.com Protection Status Authorize.net GoDaddy
Valid HTML! Valid CSS!


Reseller: Chris Brevig
|
Login
(502) 225-3237