Is EMailSender library not compatible with ESP-01 boards? The sketch is not compiling at all. Even the examples are not compiling. I am giving the compilation error below
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\IoT & ESP 01\eMail_with_ESP-01\eMail_with_ESP-01.ino:1:0:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender/EMailSender.h:48:0: warning: "DEFAULT_EMAIL_NETWORK_TYPE_ESP8266" redefined [enabled by default]
#define DEFAULT_EMAIL_NETWORK_TYPE_ESP8266 NETWORK_ESP8266
^
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender/EMailSender.h:38:0,
from E:\ABHIK BORUA CORP\R&D\Arduino\IoT & ESP 01\eMail_with_ESP-01\eMail_with_ESP-01.ino:1:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender/EMailSenderKey.h:62:0: note: this is the location of the previous definition
#define DEFAULT_EMAIL_NETWORK_TYPE_ESP8266 NETWORK_ESP8266_242
^
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\IoT & ESP 01\eMail_with_ESP-01\eMail_with_ESP-01.ino:1:0:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender/EMailSender.h:222:0: warning: "EMAIL_NETWORK_CLASS" redefined [enabled by default]
#define EMAIL_NETWORK_CLASS EMAIL_NETWORK_SSL_CLASS
^
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\IoT & ESP 01\eMail_with_ESP-01\eMail_with_ESP-01.ino:1:0:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender/EMailSender.h:131:0: note: this is the location of the previous definition
#define EMAIL_NETWORK_CLASS WiFiClient
^
Compiling libraries...
Compiling library "EMailSender"
"C:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-4-b40a506/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4/tools/sdk/include" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4/tools/sdk/lwip2/include" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\ARNABB~1\\AppData\\Local\\Temp\\arduino_build_481806/core" -c -Wall -Wextra -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=1 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4\\cores\\esp8266" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4\\variants\\generic" "-IE:\\ABHIK BORUA CORP\\R&D\\Arduino\\libraries\\EMailSender" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4\\libraries\\ESP8266WiFi\\src" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4\\libraries\\SPI" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4\\libraries\\SD\\src" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4\\libraries\\SDFS\\src" "-IC:\\Users\\Arnab Barua\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.7.4\\libraries\\ESP8266SdFat\\src" "E:\\ABHIK BORUA CORP\\R&D\\Arduino\\libraries\\EMailSender\\EMailSender.cpp" -o "C:\\Users\\ARNABB~1\\AppData\\Local\\Temp\\arduino_build_481806\\libraries\\EMailSender\\EMailSender.cpp.o"
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:35:0:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:48:0: warning: "DEFAULT_EMAIL_NETWORK_TYPE_ESP8266" redefined [enabled by default]
#define DEFAULT_EMAIL_NETWORK_TYPE_ESP8266 NETWORK_ESP8266
^
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:38:0,
from E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:35:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSenderKey.h:62:0: note: this is the location of the previous definition
#define DEFAULT_EMAIL_NETWORK_TYPE_ESP8266 NETWORK_ESP8266_242
^
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:35:0:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:222:0: warning: "EMAIL_NETWORK_CLASS" redefined [enabled by default]
#define EMAIL_NETWORK_CLASS EMAIL_NETWORK_SSL_CLASS
^
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:35:0:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:131:0: note: this is the location of the previous definition
#define EMAIL_NETWORK_CLASS WiFiClient
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp: In function 'void encode(fs::File*, BearSSL::WiFiClientSecure*)':
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:259:7: error: redefinition of 'void encode(fs::File*, BearSSL::WiFiClientSecure*)'
void encode(File *file, EMAIL_NETWORK_CLASS *client) {
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:232:9: error: 'void encode(fs::File*, BearSSL::WiFiClientSecure*)' previously defined here
void encode(fs::File *file, EMAIL_NETWORK_CLASS *client) {
^
In file included from E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:35:0:
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp: In member function 'EMailSender::Response EMailSender::send(const char**, byte, byte, byte, EMailSender::EMailMessage&, EMailSender::Attachments)':
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:207:36: warning: 'SPIFFS' is deprecated (declared at C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
#define INTERNAL_STORAGE_CLASS SPIFFS
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:645:10: note: in expansion of macro 'INTERNAL_STORAGE_CLASS'
if (!INTERNAL_STORAGE_CLASS.exists(attachments.fileDescriptor[i].url)){
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:207:36: warning: 'SPIFFS' is deprecated (declared at C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
#define INTERNAL_STORAGE_CLASS SPIFFS
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:646:10: note: in expansion of macro 'INTERNAL_STORAGE_CLASS'
if(!INTERNAL_STORAGE_CLASS.begin()){
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:207:36: warning: 'SPIFFS' is deprecated (declared at C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
#define INTERNAL_STORAGE_CLASS SPIFFS
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:659:23: note: in expansion of macro 'INTERNAL_STORAGE_CLASS'
fs::File myFile = INTERNAL_STORAGE_CLASS.open(attachments.fileDescriptor[i].url, "r");
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.h:207:36: warning: 'SPIFFS' is deprecated (declared at C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
#define INTERNAL_STORAGE_CLASS SPIFFS
^
E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender\EMailSender.cpp:762:6: note: in expansion of macro 'INTERNAL_STORAGE_CLASS'
INTERNAL_STORAGE_CLASS.end();
^
Multiple libraries were found for "SD.h"
Used: C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Not used: E:\ABHIK BORUA CORP\R&D\Arduino\libraries\SD
Using library EMailSender at version 2.4.2 in folder: E:\ABHIK BORUA CORP\R&D\Arduino\libraries\EMailSender
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi
Using library SPI at version 1.0 in folder: C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SPI
Using library SD at version 2.0.0 in folder: C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SD
Using library SDFS at version 0.1.0 in folder: C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SDFS
Using library ESP8266SdFat at version 1.1.0 in folder: C:\Users\Arnab Barua\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266SdFat
exit status 1
Error compiling for board Generic ESP8266 Module.
This topic was modified 1 year, 4 months ago by Renzo Mischianti.
Maintaining a repository (or site or forum) is a lot like tending to a garden - it requires constant care and attention to keep it thriving. If you're a skilled gardener (or coder!) and want to help keep our repository blooming, we'd love to have you on board! We're also looking for talented writers and forum moderators to help us grow our community. Interested in joining our team? Don't hesitate to reach out and let us know how you can contribute!
Are you a fan of electronics or programming? Share your knowledge with others, write a simple tutorial or how to make a great project Contact me: share_your_ideas@mischianti.org
The content displayed on this website is protected under a CC BY-NC-ND license. Visitors are prohibited from using, redistributing, or altering any content from this website for commercial purposes, including generating revenue through advertising. Any unauthorized use is a violation of the license terms and legal action may be taken against individuals or entities found to be in violation.
You must also provide the link to the source.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.