What variables are available for WHMCS service e-mail templates?
Posted by Support, Last modified by Support on 19 May 2015 04:18 PM

The following explains how to configure WHMCS service e-mail templates for welcome emails sent to your end clients by setting up the e-mail template names and the variables you can use within the e-mail template.

WHMCS E-mail Template Names

Linux End User Plans:
The welcome e-mail template name in your WHMCS install by default is called: Linux Hosting Account Welcome Email. If you don't want it to be called this or already created a email template with a differernt name, then it can be overridden by using the module config variable $gstrAISORCPLEmailTemplateName, set this variable value in the file aiso-reseller-module-settings.php to the e-mail template name you have in WHMCS.

Make sure this same email template is selected as the Welcome Email option under each Linux hosting service within the Setup Tab -> Products/Services

WHMCS E-mail Template Variables

Variable = What its replaced with in the e-mail template

The variables below require module version 1.02 and higher

{$service_password} = The service FTP Password
{$service_server_name} = The server name the service is on, example: WEBXXXX
{$service_server_ip} = The server IP address the service is on, exmaple: 123.123.123.123
{$service_ns1} = The primary name server domain name for the service, this is set in the Reseller System Setting page in our control panel
{$service_ns1_ip} = The primary name server IP address for the service, this is set in the Reseller System Setting page in our control panel
{$service_ns2} = The secondary name server domain name for the service, this is set in the Reseller System Setting page in our control panel
{$service_ns2_ip} = The secondary name server IP address for the service, this is set in the Reseller System Setting page in our control panel
{$service_ftppassword} = The service FTP password
{$service_w3svcnumber} = The service unique identifier, this is used in the FTP username and the temporary URL.
{$service_ftpusername} = The service FTP username (preset for you)
{$service_tempurl} = The service temporary URL (preset for you)

The variables below require module version 1.07 and higher

{$service_tempdomain} = The temporary domain name set in the Reseller System Settings page in our control panel
{$service_tempftphostname} = The service temporary FTP hostname (preset for you)
{$service_custom_field_tempftphostname} = The same as {service_tempftphostname}
{$service_serviceusernameprefix} = The service username prefix (the part before the service identifier number)
{$service_servicetempurlprefix} = The temporary sub-domain name prefix (the part before the service identifier number)
{$resellerservicedomain} = The domain name listed under the Reseller Account in our control panel. The email template file example included in the module download zip file uses this, so make sure to change this if WHMCS is installed under a different domain and your email accounts for billing, support, etc are under a different domain as well.