pimatic / pimatic-mail Goto Github PK
View Code? Open in Web Editor NEWMail notifications from pimatic
License: GNU General Public License v2.0
Mail notifications from pimatic
License: GNU General Public License v2.0
error [pimatic]: Error on evaluation of rule condition of rule pimatic-config-backup-e-mail: Can't send mail - all recipients were rejected
I am trying to use a rule to send an email including an attached image. I receive the image at the target email address, however it is only 1kb and cannot be opened.
Rule: send mail to:"address" subject:"topic" text:"some text" file:"/home/pi/webcam/image.jpg"
At the moment I can't any send any email with an attachment due to error: ECONNRESET
I assume the connection gets closed before the attachment has been transferred.
When I setup an email rule in pimatic, like the one shown in the example. I get the following error:
'error executing an action: spawn ENOENT' at the moment an email had to be sent.
I am using:
pimatic version 0.8.66
"pimatic-mail" (0.8.3)
nodemailer 1.3.4
Linux raspberrypi 3.18.7+ #755 PREEMPT Thu Feb 12 17:14:31 GMT 2015 armv6l GNU/Linux
Am I missing a dependency?
I'm getting following errors:
error [pimatic]: Error on evaluation of rule condition of rule sendmail: __ is not defined error [pimatic]: rule sendmail error executing an action: __ is not defined
Rule:
"rules": [ { "id": "sendmail", "name": "SendTestmail", "rule": "when relais-2 is turned on then send mail", "active": true, "logging": true } ],
mail config:
"plugin": "mail", "transport": "sendmail", "transportOptions": { "host": "mail.smtp.com", "port": "465", "secureConnection": true, "requiresAuth": true, "auth": { "user": "[email protected]", "pass": "*************" } }, "from": "[email protected]", "to": "[email protected]", "active": true
16:29:40.020 [pimatic] error: An uncaught exception occurred: TypeError: tls.convertNPNProtocols is not a function
16:29:40.020 [pimatic] error:> at Object.TLSSocket._init.ssl.onclienthello.ssl.oncertcb.exports.connect (_tls_wrap.js:1018:7)
16:29:40.020 [pimatic] error:> at SMTPClient._upgradeConnection (/home/pi/pimatic-app/node_modules/pimatic-mail/node_modules/nodemailer/node_modules/simplesmtp/lib/client.js:250:23)
16:29:40.020 [pimatic] error:> at SMTPClient._actionSTARTTLS (/home/pi/pimatic-app/node_modules/pimatic-mail/node_modules/nodemailer/node_modules/simplesmtp/lib/client.js:789:10)
16:29:40.020 [pimatic] error:> at SMTPClient._onData (/home/pi/pimatic-app/node_modules/pimatic-mail/node_modules/nodemailer/node_modules/simplesmtp/lib/client.js:354:29)
16:29:40.020 [pimatic] error:> at emitOne (events.js:77:13)
16:29:40.020 [pimatic] error:> at Socket.emit (events.js:169:7)
16:29:40.020 [pimatic] error:> at Socket.emit (/home/pi/pimatic-app/node_modules/pimatic/startup.coffee:63:24)
16:29:40.020 [pimatic] error:> at readableAddChunk (_stream_readable.js:153:18)
16:29:40.020 [pimatic] error:> at Socket.Readable.push (_stream_readable.js:111:10)
16:29:40.020 [pimatic] error:> at TCP.onread (net.js:540:20)
16:29:40.020 [pimatic] error:> This is most probably a bug in pimatic or in a module, please report it!
Is it possible to send mails with this plugin without login?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.