jordenc / email-sender

Send emails with Homey
5 stars 6 forks source link

Test works, but not in flows. #8

Closed torrfura closed 5 years ago

torrfura commented 6 years ago

Testing my settings works, and I get an email, but sending an email via a flow does not. The spinning arrow never completes.

jordenc commented 6 years ago

Did you save the settings?

Rene62 commented 5 years ago

I have the same issue. I have saved the settings

michelkamp commented 5 years ago

Same here. But also the test (was working before good) is now resulting in a URL above the test button..... BTW running latest homey 2.x firmware

jordenc commented 5 years ago

@michelkamp What is the URL / notice you get when running the test? Are you running 2.0+? I just noticed that that shows some javascript code that isn't supposed to be there. Will have to provide an update soon.

@moment77 @Rene62 I just tested the app under 2.0 and was able to send successful without a problem. Are you experienced with running apps from the commandline? That is currently the only way you can see the status of sending. After running the send command you should see something like this: Message sent: 250 2.0.0 Ok: queued as 041C535F4308A

michelkamp commented 5 years ago

running latest v2 beta firmware

michelkamp commented 5 years ago

Unfortunately, the app crashed while I was doing the following:

(...)

This is the stack trace:/app.js:217 return this.error(error); ^

TypeError: Cannot read property 'error' of null at /app.js:217:24 at Nodemailer. (/node_modules/nodemailer/lib/nodemailer.js:319:26) at /node_modules/nodemailer/node_modules/nodemailer-smtp-transport/lib/smtp-transport.js:134:28 at callback (/node_modules/nodemailer/node_modules/smtp-connection/lib/smtp-connection.js:334:14) at SMTPConnection. (/node_modules/nodemailer/node_modules/smtp-connection/lib/smtp-connection.js:345:20) at SMTPConnection._actionRCPT (/node_modules/nodemailer/node_modules/smtp-connection/lib/smtp-connection.js:1047:20) at SMTPConnection. (/node_modules/nodemailer/node_modules/smtp-connection/lib/smtp-connection.js:1021:18) at SMTPConnection._processResponse (/node_modules/nodemailer/node_modules/smtp-connection/lib/smtp-connection.js:610:16) at SMTPConnection._onData (/node_modules/nodemailer/node_modules/smtp-connection/lib/smtp-connection.js:437:10) at emitOne (events.js:116:13)

jordenc commented 5 years ago

New version 0.2.3 added to appstore (not approved yet), which will fix this error and show the errors on "test" button in settings page.

michelkamp commented 5 years ago

great ,thanks for your effort !

From: Jorden notifications@github.com Sent: dinsdag 15 januari 2019 12:03 To: jordenc/email-sender email-sender@noreply.github.com Cc: michelkamp michel.kamp@hotmail.com; Mention mention@noreply.github.com Subject: Re: [jordenc/email-sender] Test works, but not in flows. (#8)

New version 0.2.3 added to appstore (not approved yet), which will fix this error and show the errors on "test" button in settings page.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjordenc%2Femail-sender%2Fissues%2F8%23issuecomment-454353398&data=02%7C01%7C%7C8b068e8e09f24a806f3908d67ad8f5ae%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636831469577088085&sdata=UZ86tG4wNSVQZVQ7djgW9f0CtsEsCOQDSRAtKlcveAw%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGe6smkzSoUdCvVmi618YL_YJ1mkhD5Uks5vDbVLgaJpZM4V3xzQ&data=02%7C01%7C%7C8b068e8e09f24a806f3908d67ad8f5ae%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636831469577088085&sdata=Txz%2FDyRcugfIH9sSckumU6OZxIxhOTm0fz5Dww%2Br%2Fzk%3D&reserved=0.

LesPaul1962 commented 5 years ago

Same problem, test works, but sending in a flow not. I use the gmail server. I have also a doorbird and a foscam camera and their email functions are working well.

jordenc commented 5 years ago

Same problem, test works, but sending in a flow not. I use the gmail server. I have also a doorbird and a foscam camera and their email functions are working well.

If you restart the app, does it work then?