0

I set up sending emails from Mikrotik to gmail using TLS / SSL according to the official instructions. And then I enter the parameters for sending, I use my mail account gmail and send a test letter to my own account. As a result, I get an error in the logs Error sending e-mail : AUTH failed. I have tried many many combinations of everything I know, and in trying to send an e-mail, it is always the same error. Any help will be greatly appreciated. Thanks in advance. Device: cap ac, factory-software: 6.43.10.

/tool e-mail
   set address=smtp.gmail.com
   set port=587
   set from=myusername@gmail.com
   set user=myusername
   set password=mypassword
   send to=myusername@gmail.com subject="email test" body="email test" start-tls=yes
Mickael B.
  • 4,755
  • 4
  • 24
  • 48
offline
  • 25
  • 1
  • 8
  • your request is sending login and password you need to look into xoauth i think https://developers.google.com/gmail/imap/xoauth2-protocol – Linda Lawton - DaImTo May 04 '20 at 13:49
  • you can check if this security option is enable for your account : https://support.google.com/accounts/answer/6010255 – Maraumax May 04 '20 at 14:23

2 Answers2

0

Problem solved with turning off 2fa and enabling less secure apps for gmail account.

offline
  • 25
  • 1
  • 8
0

Less secure App access is not longer available for gmail (since May 30, 2022)