Difference between revisions of "Email variables"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 8: | Line 8: | ||
* '''<%= login_username %>''' - User's username to login to GUI | * '''<%= login_username %>''' - User's username to login to GUI | ||
* '''<%= login_password %>''' - User's password to login to GUI (after registration) | * '''<%= login_password %>''' - User's password to login to GUI (after registration) | ||
* '''<%= user_ip %>''' - User's IP address (after registration) | |||
* '''<%= username %>''' - same as login_username | * '''<%= username %>''' - same as login_username | ||
* '''<%= first_name %>''' - First name of the user | * '''<%= first_name %>''' - First name of the user | ||
Line 17: | Line 18: | ||
* '''<%= nice_warning_email_balance %>''' - Formated 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). | * '''<%= currency %>''' - Default system currencies short name (USD). | ||
===After registration=== | |||
* '''<%= user_ip %>''' - User's IP address (after registration) | |||
=== Example === | === Example === |
Revision as of 17:39, 3 November 2009
These variables can be used in emails:
- <%= server_ip %> - Server IP where your users should register their SIP/IAX2 devices
- <%= device_type %> - Used on user registration - shows device's type user had selected
- <%= device_username %> - Used on user registration - shows device's username
- <%= device_password %> - Used on user registration - shows device's password
- <%= login_url %> - GUI login url
- <%= login_username %> - User's username to login to GUI
- <%= login_password %> - User's password to login to GUI (after registration)
- <%= user_ip %> - User's IP address (after registration)
- <%= 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).
After registration
- <%= user_ip %> - User's IP address (after registration)
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