How to Create a email template


image
the template i used is shown below but in the content it is showing nothing after recieving email

Please check the default example:

And if you want to set the email on the submit of document then check it.

Yes i forgot to click add template

It looks like there may be an issue with how the template is structured or how variables are being used. Double-check the syntax and ensure placeholders are correctly formatted. Also, try sending a test email with plain text to see if the issue persists. If the problem continues, reviewing the email logs might help identify the cause.

It seems you’re encountering an issue where your email template content isn’t displaying upon receipt. To resolve this, consider the following steps:

  1. Ensure Proper Field Referencing: When using placeholders in your template, reference fields correctly. For instance, to include the document’s name, use {{ doc.name }}.

  2. Avoid Defining Both Content and Template: If you’re using frappe.sendmail to send emails, avoid defining both content and template parameters simultaneously, as content will take precedence over template.

  3. Check for Recent Updates: Some users have reported issues with email templates not working after updates. If you’ve recently updated your system, this might be the cause.

For creating effective follow-up email templates, ensure your placeholders are correctly referenced and avoid conflicts between content and template definitions.