xreef / EMailSender

Arduino, esp32, Esp8266 EMailSender with Arduino IDE, simple library to send email via smtp with attachments.
https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/
MIT License
74 stars 26 forks source link

Compilation error inside EMailSender.h:272:28 #40

Closed jaggil closed 1 year ago

jaggil commented 1 year ago

Hello, The following error occurs when compiling the library: In file included from E:\Mis documentos\Arduino\libraries\EMailSender-master\EMailSender.cpp:35: E:\Mis documentos\Arduino\libraries\EMailSender-master\EMailSender.cpp: In member function 'EMailSender::Response EMailSender::send(const char*, byte, byte, byte, EMailSender::EMailMessage&, EMailSender::Attachments)': E:\Mis documentos\Arduino\libraries\EMailSender-master\EMailSender.h:272:28: error: invalid conversion from 'char' to 'const char' [-fpermissive]

define EMAIL_FILE_READ 'r'

The correction is: #define EMAIL_FILE_READ "r"

Please, could you correct the master? Greetings

xreef commented 1 year ago

Hi jaggil, Please add microcontroller, framework version and configuration. Bye Renzo