Hello, I tried changing an HTML template and sinc...
# ory-network
a
Hello, I tried changing an HTML template and since then, the sent email is always Plaintext and no longer the HTML version. The mail client does accept HTML version as sending such versions from another channel (e.g., Outlook) works. I tried by only changing the title part of the email to another sentence just to limit the scope of the changes, but to no avail. Is there a way to debug / understand why an email is sent as Plaintext?
m
Hello @alert-room-61990 If your emails are being sent as plaintext despite having an HTML version, it could be due to an issue with the HTML template. Here are a few things you can check: 1. Syntax errors in the HTML template: Ensure that your HTML template is correctly formatted and doesn't contain any syntax errors. Even a small mistake can cause the entire template to fail. 2. Template location: Make sure that your custom HTML template is in the correct location as specified in your Ory Kratos configuration [source]. 3. Configuration: Check your Ory Kratos configuration to ensure that the
html
field is correctly defined under the
body
key for your email template [source]. 4. Delivery issues: If the HTML version of the email cannot be delivered for some reason (for example, if the user's mail server is blocking HTML emails), Ory Kratos will fall back to the plaintext version. You can check the email delivery status in the Ory Console [source].