Closed Alinus06 closed 1 year ago
You should show library debug printing message on Serial to see that the card mounting is success or failed.
If you read the comment in examples carefully, you will see the comment about the SD configuration requirement. https://github.com/mobizt/ESP-Mail-Client/blob/149100d7d6343b4175ddba153053e3b3a03c76b3/examples/SMTP/Send_Attachment_File/Send_Attachment_File.ino#L35-L37
Which you have to config this file to let the library knows for your SD card type and filesystem you used first.
In file SDHelper.h, the second argument of function MailClient.sdMMCBegin using at line number 147 was set for 4-bit mode
If your MMC card interface is 4-bit, you don't have to do anything with that SDHelper.h file.
Unless you connect MMC card in 1-bit mode, the line number 147 should change to
if (!MailClient.sdMMCBegin("/sdcard", true, true))
The function sdMMCBegin
is to let the library knows the type of your SD filesystem which the function arguments are the same as SD_MMC.begin
in the SD_MMC.h core library.
For SPI, 1-bit mode and 4-bit mode interfaces, please see this.
Build tool used:
Board used (ESP32/ESP8266/Arudino):
Other Libraries That are used:
#include "RTClib.h" // Librairie rtc pour DS1307 #include