- This topic has 4 replies, 1 voice, and was last updated 5 years, 2 months ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › EMailSender send email with attachments › Can’t remove attached file after sending it in email
Hi,
I have recently noticed that after sending a file in an attachment I cant delete it from D1 Mini SPIFFS system. The only way I can do this by calling SPIFFS.end(); function then SPIFFS.begin(); again.
I think that emailsender library somehow does not release the file after sending it.
Do you any idea related to this issue?
Thanks,
Norbert
Hi Norbert,
please do this test comment the line
#define OPEN_CLOSE_SPIFFSon
EMailSender.h file and retry.
Give me a feedback.
Bye Renzo
I tried to comment that line but no luck.
Just for sure switched back to SPIFFS.end()->SPIFFS.begin(); that does the job.
Hi Norbert,
I try to fix, please do some test with the version on this branch.
Give me a feedback.
Thanks Renzo
It seems it removes the file now.
It looks like it sends information to your account at gmail…is that ok?
More
Just like a well-organized workbench, this website uses cookies to function properly and efficiently.
🛠️ The Essentials (Necessary): Some cookies are categorized as necessary and are stored on your browser because they are critical for the basic working of the site.
📊 The Analytics (Third-party): We also use third-party cookies to help us analyze traffic and understand which projects you like the most. These are stored only if you give us the green light.
You can choose to opt-out, but keep in mind that disabling them might make the site experience a bit less "smooth".
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
