5.3. Email Templates

Top  Previous  Next

All email templates have the following structure:

o

subject -  subject of the email

o

message  -  body of the email

 

 

The templates listed below:

activation_email.tpl - the template for user activation email

password_change_email.tpl - the template for the letter of user password change

admin_user_contract_expired.tpl - the template of the letter which informs the administrator about an expired user contract

contract_expired.tpl - the template of the letter which informs a user about an expired contract

 

use the following local variables:

o

$user -  the array contained information about a user

o

$GLOBALS.site_url -  the global variable containing a full URL of the site

 

 

admin_listing_expired.tpl - the template of the letter which informs the administrator about an expired listing

Local variables:

o

$GLOBALS.site_url -  the global variable containing a full URL of the site

o

$listing_sid -  SID of an expired listing

 

admin_user_registration_email.tpl - the template of the letter which informs the administrator about a newly registered user

Local variables:

o

$user.sid -  SID of a new user

o

$user.username -   the username of a new user

 

admin_add_listing_email.tpl - the template of the letter where the administrator informs about a new listing

Local variables:

o

$GLOBALS.site_url -  the global variable containing a full URL of the site

o

$listing_id -  the ID of a new listing

 

listing_expired.tpl - the template of the letter where a user is informed about an expired listing

Local variables:

o

$GLOBALS.site_url -  the global variable containing a full URL of the site

o

$user.username -   the username of the user - listing's owner

o

$listing_id -  the ID of the expired listing

 

tell_friend.tpl - the template for the email from a user to his/her friend with a recommendation of the specified listing.

Local variables:

o

$listing.id -  the ID of the listing

o

$submitted_data.friend_name -  the name of a friend

o

$submitted_data.name -  the name of a user

o

$submitted_data.comment -  the text with the user's comments

 

contact_seller.tpl - the template for the email from a user to the owner of the specified listing.

Local variables:

o

$GLOBALS.site_url -  the global variable containing a full URL of the site

o

$listing.id -  the ID of the listing

o

$seller_request.name -  the name of a user

o

$seller_request.email -  the email of a user

o

$seller_request.request -  the text with the user's comments

 

book_request.tpl - the template for the email from a user to the owner of the specified listing for booking.

Local variables:

o

$GLOBALS.site_url -  the global variable containing a full URL of the site

o

$listing.Address -  contains the Address property of the listing

o

$listing.City -  contains the City property of the listing

o

$listing.State -  contains the State property of the listing

o

$listing.id -  the ID of the listing

o

$sender_name -  the name of a user

o

$sender_email -  the email of a user

o

$period_start -  the starting date for booking

o

$period_end -  the end date for booking

o

$comment -  the text of the user's comments

 

new_listings_found.tpl - the template for the notification email to a user that there is a new listing on the site which matches his saved search criteria.

Local variables:

o

$GLOBALS.site_url -  the global variable containing a full URL of the site

o

$saved_search.name -  the name of the saved search of the user

o

$user.username -  the username of the user

o

$listing.id -  the ID of the listing

 

contact_form_message.tpl - the template for the contact form from a user to the registered user.

Local variables:

o

$FullName - the name of a user

o

$Email - the email of a user

o

$Request - the text with the user's request

 

admin_contact_form_message.tpl - the template for the contact form from a user to the site administrator.

Local variables:

o

$name -  the name of a user

o

$email -  the email of a user

o

$comments -  the text of the user's comments