@mwittig said:
@koffienl OK,
I have a draft implementation available at https://github.com/mwittig/pimatic-mail
The draft implementation is based on nodemailer v0.7.1New options:
- html: Takes a HTML string
- file: Takes a “/path/to/file” string to provide a file path which will be attached to the mail.
EDIT: Side note: You can also use text and html at the same time which will result in e-mail with a multi-part body. This may be useful if one uses e-mail with limited capabilities.
Note: On Windows you should also use slash instead of the backslash path delimiter or you need to use a double backslash each time.
If you need help with testing the code let me know. I’ll give some instructions in case.
EDIT: If someone can test please and can provide feedback this will be highly appreciated.
Installed like the instructions downwards say, but got no “file” option in the rule. In stead I got: “Expected ‘and’ got ‘file’”. Will try a reboot now