Hello all
I’ve created a custom email template and written the client script for sending mail and mentioned the custom email template in that client script, Mail is sending but it shows No message in the mail, so I think there is a problem with the linking of the email template.
Here is my code and template screen shot and email screenshot, Please Help me to get Out of this so I can move forward with the content of the mail
Is there any update on this topic? I am facing same issue.
Hi @riddhi1 and @guptarajnish
As far as I know, when using frappe.sendmail() with a Jinja template in the apps/[your_app]/[your_app]/templates/emails/ directory
- You cannot define both content and message, and content will take precedence over message when both are defined
- Likewise, content will take precedence over template if both content and template are defined. So to get your template to be rendered make sure you do not also have content defined.
Furthermore, the reference to the Jinja template should not include the .html extension
frappe.sendmail (
...
#content =
template = 'email_template_without_extension',
)
Did u select this template in the workflow