• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

How to change the default email templates.

brdiscord

Chevereto Member
You're probably here because you want to change the default email templates, Here's how:

First, Navigate to /app/themes/Peafowl/mails
Copy all the php files to /app/themes/Peafowl/overrides/mails

Now you can start editing.

First you should start with header.php and footer.php

2191

I suggest adding your logo into header.php (as shown in red)

Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
<html>
<a href="YOUR SITE LINK HERE"><img src="YOUR IMAGE LINK HERE" alt="emailbanner" style="width:000px;height:000px;"></a>
<body>

Make sure you change the width and height so your image isn't stretched, I suggest a maximum width of 500px, I also suggest that if your image uses white text you change it to black with a white background.


Second you can tinker with footer.php (shown in blue)
I suggest you add some links to key parts of your site, For example, Terms of Service, Privacy Policy, FAQ etc.

Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
<br><br>--<br>
<?php _se('This email was sent from The %w %u', ['%w' => CHV\getSetting('website_name'), '%u' => G\get_base_url()]); ?>
<br><br>
<a href="TOS LINK">Terms of Service</a> - <a href="PRIVACY LINK">Privacy</a> - <a href="FAQ LINK">FAQ</a> - <a href="DONATION LINK">Donate</a>
</body>
</html>

If you don't have an FAQ page, tomsit has already written a great guide which you can follow so check that out!


Finally the account-*.php files, You can realistically leave these alone, I'd just go in and correct some of the grammar personally.

If you want to add extra lines to these you can add this:
Code:
<?php _se('ANY TEXT OR HTML'); ?>
<br><br>



Do note that these files basically just insert HTML into the email, So you can do almost whatever you want within HTML's scope, I suggest reading this guide from w3schools.

Let me know if you have any other questions/if I missed something.
Anyway, Enjoy.
 
Back
Top