Email & Templates Overview
Overview
This section is designed to review how to utilize email and email templates in FusionAuth. See Email APIs for additional information on integrating directly with the APIs.
Email and Email Templates are a core feature of FusionAuth. This feature provides the ability to communicate with your Users via email. FusionAuth comes shipped with a few basic email templates for common workflows such as Setup Password, Change Password and Verify Email.
In order to use email templates and email based workflows, you will need to enable and complete the SMTP configuration. Generally this will have been completed during the FusionAuth Setup Wizard. If you have not yet completed this step see the topic link below for configuring email.
Here are the topics in this section:
Here’s a brief video covering some aspects of email templates:
Troubleshooting
FusionAuth sends a lot of email, for forgotten passwords, passwordless login and other features.
Troubleshooting email delivery is difficult. There are many factors affecting it. However, there are steps you can take to narrow down the problem.
Send A Test Email
The Send Test Email button has been available since 1.16.0
The first step is to ensure that you can send a test email. Navigate to
and send a test email. If it is received, FusionAuth can send emails via SMTP.
If sending a test email fails, a tool such as SWAKS can help debug SMTP issues. Using this tool removes FusionAuth from the equation.
Further Investigation
If the test email succeeds, but you aren’t receiving other emails, investigate further by following these steps:
-
Send emails to different addresses at different providers and check the spam folder.
-
Make sure that you are firing the event that you expect to send email correctly. For instance, if you are looking for email verification of users, make sure that is enabled.
-
Test with a different FusionAuth function. Sending a password reset email is easy to do from the user details screen.
-
Make sure the email template is correct, or use a default template.
SMTP Logging
If you would like to see verbose SMTP logging, follow these steps:
-
Enable debugging by navigating to
and addmail.debug=true
. -
Save the tenant.
-
Send an email.
-
View the system logs by navigating to
. -
Select
fusionauth-app.log
and you will see verbose SMTP output.
Doing this logs the full SMTP conversation, which can be verbose. You should remove this setting when you have finished troubleshooting.