WHMCS

Customise WHMCS email templates and the email header and footer

Edit WHMCS email templates such as welcome, invoice and reminder emails, use merge fields, brand the global header and footer, add translations and create custom templates.

IntermediateWHMCS3 min read

WHMCS sends dozens of automatic emails: order confirmations, hosting welcome emails with login details, invoices, reminders, ticket replies. The default wording is generic. Customising the templates makes your business look professional and reduces support questions, especially for welcome emails.

Before you start

  • Administrator access to WHMCS.
  • Mail sending configured with SMTP; see WHMCS mail configuration.
  • Your logo URL and brand colours.

Open the email templates

Go to Configuration → System Settings → Email Templates. Templates are grouped by type: General, Product/Service, Domain, Invoice, Support, Affiliate, Admin and Notification.

Edit a template

  1. Click a template name, for example Hosting Account Welcome Email.
  2. Change the Subject if needed.
  3. Edit the message in the editor. Use the toolbar for formatting or switch to source view for HTML.
  4. Insert merge fields (see below) from the list under the editor.
  5. Use Copy To or Preview if available, then click Save Changes.

Useful merge fields

FieldInserts
{$client_first_name}Client's first name
{$service_domain}Domain of the hosting service
{$service_username}cPanel or service user name
{$service_server_hostname}Server hostname
{$service_ns1}, {$service_ns2}Nameservers
{$invoice_num}, {$invoice_total}Invoice number and amount
{$invoice_link}Link to view and pay the invoice
{$whmcs_url}Your client area address
{$signature}Your email signature from General Settings

Templates use Smarty, so you can also add simple conditions, for example {if $service_dedicated_ip}Your IP: {$service_dedicated_ip}{/if}.

Write a better welcome email

  • Lead with what the customer needs now: how to log in (link to the client area, where they can open cPanel in one click) and what nameservers to set.
  • Avoid sending passwords in email where possible; link to the client area's password reset instead.
  • Link to your getting-started guides and support channel.
  1. Go to Configuration → System Settings → General Settings → Mail.
  2. Edit Email CSS Styling for colours and fonts.
  3. Edit Client Email Header Content to include your logo and Client Email Footer Content for address and links.
  4. Set the Email Signature.
  5. Save, then send yourself a test (for example by resending a welcome email from a test service).

Translations

When you have several client languages, each template has a language selector. Create a version per language; WHMCS sends the one matching the client's language setting, falling back to the default.

Custom templates

Click Create New Email Template, choose the type (for example Product/Service) and name it. You can then select it as the welcome email for a specific product, or send it manually from a client's profile with Send Message.

Troubleshooting

  • Merge field prints literally: it does not exist for that template type, or there is a typo. Copy it from the list under the editor.
  • Smarty error, email not sent: an unclosed {if} or stray brace. Check Utilities → Logs → Email Message Log.
  • Emails in spam: switch from PHP Mail to SMTP and set SPF and DKIM for the sending domain.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.