Closed papirrin999 closed 4 years ago
With static mode, you must define a dns ip, otherwise the dns resolution of the mailserver fails. Not a sender-library problem, i had this problem first with a dns resolution of a ntp-server ("de.pool.ntp.org")
IPAddress ip MY_IP; IPAddress gateway MY_GATEWAY; IPAddress subnet MY_SUBNET; IPAddress dns MY_DNS; // can be the gateway IP
WiFi.mode(WIFI_STA); WiFi.config(ip, gateway, subnet, dns); WiFi.begin(ssid, password);
OK. I use a WEMOS D1 R1 Core but it does not work defining a dns ip I have tried with your example and others without satisfactory results, investigating I saw that this library is not a problem, thank you very much for your answer.
Thanks tuo @barneyz for the precious support.. I close the issue. Bye Renzo
the library isn`t compatible with static mode WiFi.mode(WIFI_STA); WiFi.config(ip, gateway, subnet); WiFi.begin(ssid, password);