Welcome to the documentation for sesaame, your new touch-and-go viral email marketing script.
You can see the script in action immediately by performing the following steps.
Find or prepare a spot on one of your pages for the script's user interface. Making sure the page has the extension .php (or other extension configured with php), paste the following code into that spot.
Upload the file sesaame.php into the same folder as that page, and you're done. The script will automatically create the required 'data' folder and database files within it, and also a .htaccess file denying access to the data folder. If the directory and files are not created automatically, you must create them:
When you view the page, the script automatically generates a dynamic user interface that may include messages, a form, and navigation links.
If you already took a look at the output of the script, you will have noticed that it already contains instructional and email text. These are just demonstration messages and are intended to be changed by you.
To edit the texts and other configuration options, open sesaame.php in a text editor. All of the messages are located at the top, along with some other options, in a series of defines.
Notice first the defines named SESAAME_GREETING_... These messages appear on each page of the interface and are intended to contain instructional and inspirational marketing-type text, and anything else you want on that particular page.
Make sure you edit subjects and messages that will be used for invitation and verification emails. ESPECIALLY make sure to edit the SESAAME_VERIFICATION_FROM email address. This is the address email verification requests will be sent from.
Some of the messages can contain special variables. They are %from%, %to%, %url%, and %refs%, and are only supported within certain messages. Instances of those variables will be replaced before the message is displayed. You should get an idea of how to use them by referring to the default texts I have entered.
As of this release there are two additional behavioral options:
The output of the script is intended to be easily styled using CSS. The script output will consist of the following stylable elements:
As the system is used, required information is kept in .txt files in the 'data' folder. It's important that you understand that only email addresses in the file 'list.txt' are verified/agreed emails for use in your mailings.
The three database files and their purposes are described below.
It's important that you protect the 'data' folder, such as with .htaccess, as if a user had access to invites.txt they may manually verify email addresses using the verification codes therein.
The number of credits earned by a member can be retrieved easily using the sesaame_refs() function, as illustrated in the following code which prints the number of credits user $email has earned.
When mailing the verified subscribers it is lawful to include an unsubscribe link at the bottom of the email. In the examples shown below, replace "www.example.com/example.php" with the usual path to your page which has the sesaame code pasted into it.
Example 1: Manual, gives you an opportunity to change the member's mind on-site! (SESAAME_GREETING_REMOVE)
Example 2: Automatic. Make sure you replace example@email.com with the specific user's email address.