Page 1 of 2

Email Attachments?

PostPosted: Wed Jul 04, 2018 2:02 pm
by ckeyes888
Seeing my Applescripts to attach security cam images have stopped working I’m hoping
the Better Email plugin might support that soon?

Thanks,

Carl

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 2:08 pm
by FlyingDiver
It does now. Field for path names at the bottom of the Send Email action dialog.

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 2:23 pm
by ckeyes888
Awesome! Can’t seem to get the path syntax in correctly. Keep getting “no such directory” error.

Maybe post a sample path?

Thanks,

Carl

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 2:28 pm
by FlyingDiver
It's a full filename path. Like "/Users/indigo/Documents/foo.jpg". What are you trying that's not working?

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 3:45 pm
by ckeyes888
I believe I have the path in correctly, that error stopped, but can’t seem to get my gmail settings to work
to send.

Thanks,

Carl

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 4:04 pm
by ckeyes888
The Better Email device state shows, "Success" but when I execute a send email I get these errors.


Code: Select all
Better Email Error              Better Email Server: Error connecting to IMAP server: IMAP4 protocol error: socket error: <type 'exceptions.IOError'> - Too many read 0
   Better Email Error              exception in deviceStartComm(Better Email Server): IMAP4 protocol error: socket error: <type 'exceptions.IOError'> - Too many read 0
   Better Email                    Better Email Setup: Sending email 'Deck Cam Image' to 'ckeyes@xxxx.net'
   Better Email Error              Better Email Setup: SMTP server connection error: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)
   Error (client)                  received unexpected packet response UiGetValues2 (waiting for )
   Error (client)                  received unexpected packet response CallPluginFunc (waiting for )
   Error (client)                  received unexpected packet response CalcDeviceFunc (waiting for )


Thanks,

Carl

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 4:14 pm
by ckeyes888
From what I can gather I believe these email settings are supposed to work for a gmail account?

Thanks,

Carl

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 4:16 pm
by FlyingDiver
IMAP is for receiving mail. To send mail you need to create an SMTP device.

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 4:51 pm
by ckeyes888
Checked out the Wiki but didn’t see any info on setting up a SMTP device.
Any help appreciated.

Thanks,

Carl

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 4:54 pm
by FlyingDiver
Create the device. Fill in the fields like you did for the IMAP device.

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 5:02 pm
by ckeyes888
Been trying that with no luck. I have a number of email accounts and can’t make any of them work.

Thanks,

Carl

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 6:03 pm
by FlyingDiver
You're not showing the logs or any errors, so I'm just guessing here.

Are all the accounts you're trying Gmail? If so, do you have the "insecure clients" enabled in the Gmail setup? The plugin can't do two factor authentication or OAuth, so that's required.

More info on that in this thread: viewtopic.php?f=211&t=20747

Re: Email Attachments?

PostPosted: Wed Jul 04, 2018 10:44 pm
by ckeyes888
At this point there aren't any errors to show. I can't get the SMTP device to show "Success".
I have 4 email accts, the one I'd like to use is gmail, the others are personal domains.
Still no joy with any of them.

Edit: I had turned on the "allow insecure apps" option.
Thanks,

Carl

Re: Email Attachments?

PostPosted: Thu Jul 05, 2018 5:55 am
by FlyingDiver
Other than the status field, is it actually working properly? Is it sending the email messages?

If it's just the status not updating properly, file a bug report on it.

Re: Email Attachments?

PostPosted: Thu Jul 05, 2018 10:22 am
by ckeyes888
The status field magically changed to Success this morning and all is working great.
Seems the change I made in gmail to allow less secure apps took many hours to go into effect.

Thanks!

Carl