Email variables

From Kolmisoft Wiki
Revision as of 09:58, 6 November 2009 by Admin (talk | contribs)
Jump to navigationJump to search

These variables can be used in emails:

  • <%= 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

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



See also