Difference between revisions of "Email variables"

From Kolmisoft Wiki
Jump to navigationJump to search
m
Line 18: Line 18:
* '''<%= currency %>''' - Default system currencies short name (USD).
* '''<%= currency %>''' - Default system currencies short name (USD).


'''Example:''' <br>
=== Example ===
This template:  
This template:  
<pre>
<pre>
Line 41: Line 41:
</pre>
</pre>
   
   
'''See also:'''
<br><br>
= See also =
* [[Configuration from GUI#Emails | Email Configuration]]
* [[Configuration from GUI#Emails | Email Configuration]]

Revision as of 16:00, 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)
  • <%= 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).

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



See also