-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from TeskaLabs/Enhancement/Email-supports-txt
Email Supports TXT
- Loading branch information
Showing
3 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SUBJECT: Hello from ASAB Iris | ||
Hello, | ||
|
||
I'm very simple message by {{name}}! | ||
|
||
Your, | ||
ASAB Iris |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,23 @@ | |
} | ||
``` | ||
|
||
## TSM001F: Send an email using Markdown template from a template that uses now from template global. | ||
|
||
`PUT /send_mail` | ||
|
||
``` | ||
{ | ||
"to": ["[email protected]"], | ||
"body": { | ||
"template": "/Templates/Email/mesage.txt", | ||
"params":{ | ||
"name":"Iris", | ||
"tenant":"Default", | ||
} | ||
} | ||
} | ||
``` | ||
|
||
|
||
## TSM002: Send an email using HTML template | ||
|
||
|
@@ -1467,6 +1484,8 @@ EXPECTED RESPONSE: | |
{"type":"email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Export.md", "params":{"name": "I am testing a template", "error": "None" }}} | ||
{"type":"email", "to": ["Shivashankar <[email protected]>"], "from": "[email protected]", "body":{"template":"/Templates/Email/message.txt", "params":{"name": "I am testing a template", "error": "None" }}} | ||
'WITHOUT FROM' | ||
{"type":"email", "to": ["Shivashankar <[email protected]>"], "body":{"template":"/Templates/Export.md", "params":{"name": "I am testing a template", "error": "None" }}} | ||
|