- This topic has 3 replies, 2 voices, and was last updated 2 years, 10 months ago by .
- You must be logged in to reply to this topic.
Tagged: emailsender sd
Hello,
I am very happy with the emailsender library to use with Spiffs but since I have a lot of files I need an SD card what should I do?
In addition for later I would like to use emailsender with an esp32-S2: will this be possible?
cordially
Hi fr,
yes, SD was supported, you can follow the instructions on this article
Send email with attachments (EMailSender v2.x library): esp32 and esp8266 – 2
I don’t test s2, I’ll do that test soon.
Bye Renzo
Thank you for responding to me so quickly.
The link is precisely the one that allowed me to test with spiffs.
But there is no example of using SD
My level allows me to manage the initialization of the SD but what to put in place of
fileDescriptor[0].storageType = EMailSender::EMAIL_STORAGE_TYPE_SPIFFS;
An full example please !
Hi,
here an example
EMailSender::FileDescriptior fileDescriptor[2];
fileDescriptor[1].filename = F("test.txt");
fileDescriptor[1].url = F("/test.txt");
fileDescriptor[1].storageType = EMailSender::EMAIL_STORAGE_TYPE_SD;
fileDescriptor[0].filename = F("logo.jpg");
fileDescriptor[0].url = F("/logo.jpg");
fileDescriptor[0].mime = "image/jpg";
fileDescriptor[0].encode64 = true;
fileDescriptor[0].storageType = EMailSender::EMAIL_STORAGE_TYPE_SD;
EMailSender::Attachments attachs = {2, fileDescriptor};
EMailSender::Response resp = emailSend.send("<receipe@gmail.com>", message, attachs);
Bye Renzo
More
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display DynamoDB E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Temperature Tutorial Web Server Wemos D1 mini WiFi