WordPress Welcome Email Setup with PressWHMCS
The PressWHMCS module enhances automation between Pressable and WHMCS, streamlining hosting management tasks. One way to improve the customer experience is by sending a personalized email with WordPress login details after an order is placed and the website is provisioned—either automatically or manually—via the PressWHMCS module. This can be accomplished by creating a custom email template in WHMCS and linking it to your product configuration. This guide provides a step-by-step process to set it up effectively.
Why Set Up a Custom Welcome Email?
A tailored welcome email offers multiple benefits:
- Enhanced Customer Experience: Delivers immediate access to WordPress login credentials.
- Branding Opportunity: Allows you to customize the email with your company’s style and tone.
- Efficiency: Automates the delivery of critical information as soon as the website is provisioned.
Using WHMCS’s email template system, you can configure this notification seamlessly.
Step 1: Access Email Templates in WHMCS
- Log in to WHMCS Admin:
- Go to https://yourdomain.com/admin (replace with your WHMCS admin URL).
- Navigate to Email Templates:
- Click Configuration (wrench icon) → System Settings.
- In the search bar, type Email Templates and select it when it appears.
- Explore the Email Templates Page:
- This section lists all existing email templates used by WHMCS for notifications.
- You can modify these templates or create new ones as needed.
Step 2: Create a New Email Template for PressWHMCS
- Initiate a New Template:
- Click the Create New Email Template button.
- Choose the Email Type:
- In the pop-up, select Product/Service as the type.
- Name Your Template:
- Enter a descriptive name, such as "New WordPress Hosting Email" or "WordPress Login Details".
- Configure Email Settings:
- After naming, you’ll be taken to the email template editor. Set the following:
- From Email: The sender’s email address.
- CC and BCC: Add optional recipients if needed.
- Attachments: Include files if applicable.
- Disable Email: Ensure this is unchecked to enable sending.
- After naming, you’ll be taken to the email template editor. Set the following:
Step 3: Customize the Email Template
- Use the Default Template:
- A preconfigured HTML template is available for easy setup. Copy it from: -> PressWHMCS Email Template.
- This template incorporates custom fields (e.g., login details) from PressWHMCS module when a Product/Service is created.
- Insert the HTML Template:
- In the email template editor, click Help → Source Code.
- Paste the copied HTML into the pop-up window and click OK.
- Personalize the Template:
- Adjust the template to reflect your branding or add extra details.
- Verify that custom fields like {$client_name} or {$service_username} are correctly included to populate order-specific data.
- Save Your Work:
- Click Save Changes at the bottom to store the template.
Step 4: Link the Email Template to Your PressWHMCS Product
- Find Your Product:
- Go to Configuration → System Settings → Products/Services.
- Locate the product tied to your PressWHMCS module.
- Edit the Product:
- Click the Edit button next to the product.
- Assign the Welcome Email:
- Scroll to the Welcome Email section.
- Select your newly created template (e.g., "WordPress Login Details").
- Save the Settings:
- Click Save Changes to apply the configuration.
Note: If you haven’t set up a hosting product with PressWHMCS yet, see How to Create a Hosting Product with PressWHMCS.
Step 5: Test the Email Configuration
- Simulate an Order:
- Place a test order for the PressWHMCS product to trigger provisioning.
- Verify Email Delivery:
- Check that the welcome email is sent with accurate WordPress login details.
- Inspect Custom Fields:
- Ensure all placeholders (e.g., username) are correctly filled.
If issues arise (e.g., email not sending or missing data), review the template’s source code and product settings.
Key Considerations
- Automation: The email triggers automatically when the PressWHMCS module provisions the site.
- Custom Fields: These rely on order-specific data. Confirm they’re set up in your product configuration.
- Customization: Modify the HTML to match your brand’s aesthetic.
- Scope: The template applies to all orders for the linked product. Create separate templates for different products if necessary.
Troubleshooting Tips
- Email Not Sending? Ensure the template is enabled and assigned to the product.
- Missing Data? Check that custom fields are defined in the product and included in the template.
- Formatting Problems? Validate the HTML in the source code editor for errors.
Conclusion
Configuring a custom WordPress welcome email with PressWHMCS ensures your customers receive their login details promptly in a polished, branded format. By following these steps, you’ll enhance automation and user satisfaction. For more on the module, refer to How to Install and Activate PressWHMCS.