diff --git a/Troubleshooting-Mail.md b/Troubleshooting-Mail.md index 466ee75..3ee0a12 100644 --- a/Troubleshooting-Mail.md +++ b/Troubleshooting-Mail.md @@ -7,6 +7,19 @@ In [Wekan v5.02](https://github.com/wekan/wekan/blob/master/CHANGELOG.md#v502-20 - Email settings are made only with snap commands like `sudo snap set wekan mail-url....` or similar in Docker/Source etc `MAIL_URL=...`, more details below. - For any errors like SSLv3 and STARTTLS, check [newest AWS SES info](#example-aws-ses) and use similar settings, other SSLv3/STARTTLS info could be outdated. +## Some more test code + +``` +let htmlText = Assets.getText("emailTemplate.html"); +let modifiedText = htmlText.replace(new RegExp("{{variable}}", 'g'), variable); +Email.send({ + from: "nobody@example.com", + to: email, + subject: `subject`, + html: modifiedText, + }); +``` + ## Debugging your SMTP mail server If you can't get your email server working with smtp/stmps or MAIL_SERVICE, look is there more config options for your email server at https://nodemailer.com docs, and add new issue about your email server to https://github.com/wekan/wekan/issues or [pull request](https://github.com/wekan/wekan/wiki/Emoji#how-you-could-add-another-plugin).