• Система автоматизации с открытым исходным кодом на базе esp8266/esp32 микроконтроллеров и приложения IoT Manager. Наша группа в Telegram

smtp из примера idf - у кого-то работает?

Slacky

Member
Пытаюсь отправить почту из esp32 на gmail.com или smtp.yandex.ru. Результат одинаковый. Ну отличие, что google прислал сообщение о попытке войти с неизвестного устройства ...

Выдает вот такое. Есть идеи?

Код:
I (3640) example_connect: Connected to example_connect: sta
I (3650) example_connect: - IPv4 address: 192.168.100.40
I (3650) example_connect: - IPv6 address: fe80:0000:0000:0000:ca2b:96ff:fea2:7550, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (3670) smtp_example: Seeding the random number generator
I (3670) smtp_example: Loading the CA root certificate...
I (3680) smtp_example: Setting hostname for TLS session...
I (3680) smtp_example: Setting up the SSL/TLS structure...
I (3690) smtp_example: Connecting to smtp.gmail.com:587...
I (4120) smtp_example: Connected.

220 smtp.gmail.com ESMTP j21sm704298ljh.87 - gsmtp
I (4140) smtp_example: Writing EHLO to server...

250-smtp.gmail.com at your service, [77.37.212.85]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250
-PIPELINING
250-CHUNKING
250 SMTPUTF8
7.212.85]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250I (4170) smtp_example: Writing STARTTLS to server...

220 2.0.0 Ready to start TLS
����?I (4200) smtp_example: Performing the SSL/TLS handshake...
I (5630) smtp_example: Verifying peer X.509 certificate...
I (5630) smtp_example: Certificate verified.
I (5630) smtp_example: Cipher suite is TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
I (5640) smtp_example: Authentication...
I (5640) smtp_example: Write AUTH LOGIN
I (5680) smtp_example: Write USER NAME
I (5700) smtp_example: Write PASSWORD
E (5770) smtp_example: Last error was: -0xfffffde9 - UNKNOWN ERROR CODE (0200) : UNKNOWN ERROR CODE (0017)
 
Сверху Снизу