From 664b03f2b57b8ea493935bad6595f53e520e496a Mon Sep 17 00:00:00 2001 From: Luc Date: Sun, 14 Jul 2019 16:34:40 +0200 Subject: [PATCH] Fix notification email failed fix email not connecting to server thanks @maciak --- esp3d/config.h | 2 +- esp3d/notifications_service.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esp3d/config.h b/esp3d/config.h index ddeb284c..3a3f90c9 100644 --- a/esp3d/config.h +++ b/esp3d/config.h @@ -19,7 +19,7 @@ */ //version and sources location -#define FW_VERSION "2.1.0.b31" +#define FW_VERSION "2.1.0.b32" #define REPOSITORY "https://github.com/luc-github/ESP3D" //Customize ESP3D //////////////////////////////////////////////////////////////////////// diff --git a/esp3d/notifications_service.cpp b/esp3d/notifications_service.cpp index 55110d53..a5627128 100644 --- a/esp3d/notifications_service.cpp +++ b/esp3d/notifications_service.cpp @@ -396,10 +396,10 @@ bool NotificationsService::begin() break; case ESP_EMAIL_NOTIFICATION: if (CONFIG::read_string (ESP_NOTIFICATION_TOKEN1, sbuf, MAX_NOTIFICATION_TOKEN_LENGTH) ) { - _token1 = sbuf; + _token1 = base64::encode(sbuf); } if (CONFIG::read_string (ESP_NOTIFICATION_TOKEN2, sbuf, MAX_NOTIFICATION_TOKEN_LENGTH) ) { - _token2 = sbuf; + _token2 = base64::encode(sbuf); } //log_esp3d("%s",Settings_ESP3D::read_string(ESP_NOTIFICATION_TOKEN1)); //log_esp3d("%s",Settings_ESP3D::read_string(ESP_NOTIFICATION_TOKEN2));