Difference between revisions of "Email variables"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 21: | Line 21: | ||
* '''<%= email %>''' - Company email address | * '''<%= email %>''' - Company email address | ||
* '''<%= company %>''' - Company title | * '''<%= company %>''' - Company title | ||
* '''<%= | * '''<%= primary_device_pin %>''' - PIN of users default device. Default device is created the moment user registers, so this variable can be used universally. | ||
===After registration=== | ===After registration=== |
Revision as of 16:59, 29 March 2010
These variables can be used in emails:
Every email
- <%= server_ip %> - Server IP where your users should register their SIP/IAX2 devices
- <%= device_type %> - Shows users primary device's type. (Device after user registration is set as primary device)
- <%= device_username %> - Shows users primary device's username. (Device created after user registration is set as primary device)
- <%= device_password %> - Shows users primary device's password. (Device created after user registration is set as primary device)
- <%= login_url %> - GUI login url
- <%= login_username %> - User's username to login to GUI
- <%= username %> - same as login_username
- <%= first_name %> - First name of the user
- <%= last_name %> - Last name of the user
- <%= full_name %> - First name and last name of the user
- <%= balance %> - User's balance
- <%= nice_balance %> - Formated user's balance
- <%= warning_email_balance %> - Amount below which user should be warned with email.
- <%= nice_warning_email_balance %> - Formated amount below which user should be warned with email.
- <%= currency %> - Default system currencies short name (USD).
- <%= user_email %> - Users email address
- <%= company_email %> - Company email address
- <%= email %> - Company email address
- <%= company %> - Company title
- <%= primary_device_pin %> - PIN of users default device. Default device is created the moment user registers, so this variable can be used universally.
After registration
- <%= login_password %> - User's password to login to GUI
- <%= user_ip %> - User's IP address
Cyberplay payment report
- <%= currency %> - Payment currency
- <%= amount %> - Payment amount
- <%= date %> - Payment date
- <%= auth_code %> - Authorization code
- <%= transaction_id %> - Payment transaction ID provided by Cyberplat
- <%= customer_name %> - Payment customer name provided by Cyberplat
- <%= description %> - Payment details provided by Cyberplat
Example
This template:
Hello, <%=full_name%> Your balance in MOR has run out bellow <%= nice_warning_email_balance %> <%= currency %> and now is <%= nice_balance %> <%= currency %>. Please login to <%= login_url %> and replenish it. Yours Sincerely, KOLMISOFT
Will result in email similar to this:
Hello, John Smith Your balance in MOR has run out bellow 10.00 USD and now is 5.67 USD. Please login to http://your_site/billing and replenish it. Yours Sincerely, KOLMISOFT