This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Yahoo mails stuck in draft
#1
When gmail changed their mail policy I changed to yahoo to send notification mails.

In the past this worked well, but today I have found out that since quite a while, the mails were not sent.

To be precise, the mails are sent from my LM and processed by Yahoo, but in the Yahoo mailbox they end up in the Drafts folder, so they are not sent to the recipient...

Should I change something in the Local Settings from Common functions to make this work again?
This is what I have now:

Code:
1234567891011121314151617
  local settings = {     -- "from" field, only e-mail must be specified here         from = 'XXX@yahoo.com',     -- smtp username         user = 'XXX@yahoo.com',     -- smtp password         password = 'YYYYYYY',     -- smtp server         server = 'smtp.mail.yahoo.com',     -- smtp server port     port = 465,     -- enable ssl, required for gmail smtp     secure = 'sslv23',

Nothing else is changed in the Common functions
Reply
#2
Try
secure = 'tlsv1_2'
------------------------------
Ctrl+F5
Reply
#3
log what the mail function returns:
Code:
12
res, err = mail(...) log(res, err)

Most likely this is some security change on the mail server side. Many providers are disabling simple user/password authentication and require additional user interaction which cannot be automated.
Reply
#4
(15.01.2025, 11:14)Daniel Wrote: Try
secure = 'tlsv1_2'

Still stuck in Draft...
Reply
#5
You can also use smtp2go.com . I use the free version and it works great.
Reply
#6
(15.01.2025, 13:22)Fcs Wrote: You can also use smtp2go.com . I use the free version and it works great.

@Fcs: How do I create an account?
No matter what email address I enter, I get an error:

Error code 6 - Emails on the shared domain cannot be used.
Reply
#7
You need to use you own domain
Reply
#8
(15.01.2025, 14:26)Fcs Wrote: You need to use you own domain

So my gmail or yahoo mail account won't work?

On their website there is a note somewhere: If you've created an account with a gmail address and your sending from a new domain etc

Update: I contacted smtp2go and they confirmed that I had to use my own domain...
Reply
#9
(15.01.2025, 11:41)admin Wrote: log what the mail function returns:
Code:
12
res, err = mail(...) log(res, err)

Most likely this is some security change on the mail server side. Many providers are disabling simple user/password authentication and require additional user interaction which cannot be automated.

With sslv23 I get: nil   string: 554 6.6.0 Error sending message for delivery.
With tlsv1_2 (and port (587) I get: nil    string: unknown type in record hdr

It is strange that with sslv23 the message is accepted but ends up in the Drafts...
Reply
#10
Which firmware do you use?
------------------------------
Ctrl+F5
Reply
#11
(15.01.2025, 15:54)Daniel Wrote: Which firmware do you use?

20160714. 
I know this is very old, but this LM4 has a third party library running on it that interferes with firmware updates or rather a firmware update messes up the  third party library Dodgy 

In the mean time I'm back in business as far as sending mail is concerned.

While I was trying to figure out what was wrong with the mail, I suddenly received a mail from the LM!

I have a script running that sends me a picture of my door camera whenever someone rings the bell. I had completely forgotten but in that script is a mail function to send mails with an attachment. When I looked at the credentials, they where for gmail. 
Now I remember vaguely that when google changed their mail settings there was a workaround described here: https://forum.logicmachine.net/showthrea...1#pid26361

I probably have done this and used those credentials in the camera script, but not in the Common functions where I had started to use yahoo.
I have now used the gmail credentials from the camera script in the mail function in the Common functions and this works ok...

I still will be looking into the yahoo issue...
Reply
#12
(15.01.2025, 11:41)admin Wrote: log what the mail function returns:
Code:
12
res, err = mail(...) log(res, err)

Most likely this is some security change on the mail server side. Many providers are disabling simple user/password authentication and require additional user interaction which cannot be automated.

I gave up on yahoo since I got gmail to work again, but I wanted to try my standard mail provider to have backup just in case...
This provider uses starttls as security protocol.

I modified the mail script to reflect that and changed port to 587.
Now I receive the following:
testing 16.01.2025 11:42:58
* string: unknown type in record hdr


testing 16.01.2025 11:42:58
* nil
Reply
#13
STARTTLS is not supported in your firmware. It won't work by simply changing the port number as the encryption initialization is different from normal TLS mode.
Reply
#14
(16.01.2025, 10:54)admin Wrote: STARTTLS is not supported in your firmware. It won't work by simply changing the port number as the encryption initialization is different from normal TLS mode.

Too bad, but that's life...
Thanks.
Reply


Forum Jump: