Tagged: error emailSender with file
- This topic has 2 replies, 1 voice, and was last updated 2 years, 2 months ago by
Gilles.
-
AuthorPosts
-
-
1 April 2023 at 16:39 #24996
Hello, I come back (again) on an emailSender error code problem!
Does anyone have the detailed list of possible error code emitted by emailSender?Otherwise more particularly currently I have a problem with sending an attachment, the return code is: 500 with an Error on startup SD filesystem!
16:11:34.388 -> miltiple destination and attachments 16:11:34.388 -> Insecure client:0 16:11:34.435 -> smtp.laposte.net 16:11:34.435 -> 587 16:11:34.528 -> 220 mlpnf0118.laposte.net ESMTP ************************** 16:11:34.574 -> HELO mischianti 16:11:34.574 -> 250 mlpnf0118.laposte.net 16:11:34.622 -> AUTH LOGIN: 16:11:34.622 -> 334 dJ5fgr;m 16:11:34.670 -> Encoding 16:11:34.670 -> mail@laposte.net 16:11:34.670 -> 26 16:11:34.670 -> Z21dlmfskgùzeùzer5654dgsfgzkl! 16:11:34.717 -> Encoding 16:11:34.764 -> mail@laposte.net 16:11:34.811 -> 26 16:11:34.811 -> 334 Tg4Sjr000 16:11:34.811 -> Encoding 16:11:34.811 -> password 16:11:34.811 -> 13 16:11:34.811 -> password encoded 16:11:34.857 -> Encoding 16:11:34.857 -> password 16:11:34.903 -> 13 16:11:34.903 -> 235 2.7.0 Authentication successful 16:11:34.950 -> MAIL FROM: <mail@laposte.net> 16:11:34.950 -> 250 2.1.0 Ok 16:11:34.995 -> RCPT TO: <encore_un_emailn@gmail.com> 16:11:35.043 -> 250 2.1.5 Ok 16:11:35.043 -> RCPT TO: <un_autre_email.net> 16:11:35.091 -> 250 2.1.5 Ok 16:11:35.091 -> RCPT TO: <un_email.fr> 16:11:35.139 -> 250 2.1.5 Ok 16:11:35.139 -> DATA: 16:11:35.139 -> 354 End data with <CR><LF>.<CR><LF> 16:11:35.186 -> Array: MARS2023.csv 16:11:35.233 -> --frontier 16:11:35.233 -> Content-Type: 16:11:35.280 -> text/csv 16:11:35.280 -> ; charset="UTF-8" 16:11:35.280 -> Readed filename: MARS2023.csv 16:11:35.327 -> SD Check 16:11:37.323 -> Statut de l'envoi avec piece jointe : 16:11:37.323 -> 0 16:11:37.323 -> resp Code: 500 16:11:37.323 -> Description : Error on startup SD filesystem!
I tried without attachment, it works fine.
The micro SD is not damaged, I can download the content of the MARS2023.CSV file via the internet, I do not write to the file when it is sent, I have tried other files without success,… .
And with other programs it works well and yet I copied the original code which worked the only difference I see is that the program with the problem is a wind speed measurement which uses interrupts to count the number of pulses of the anemometer…
THANKS -
1 April 2023 at 17:23 #24997
With another program on the same hardware it works correctly and I get this:
15:33:42.022 -> 250 2.1.5 Ok 15:33:42.022 -> DATA: 15:33:42.022 -> 354 End data with <CR><LF>.<CR><LF> 15:33:42.070 -> Array: MARS2023.csv 15:33:42.070 -> --frontier 15:33:42.118 -> Content-Type: 15:33:42.118 -> text/csv 15:33:42.118 -> ; charset="UTF-8" 15:33:42.118 -> Readed filename: MARS2023.csv 15:33:42.166 -> SD Check 15:33:42.166 -> Open file: 15:33:42.211 -> OK 15:33:42.211 -> NORMAL 15:34:58.385 -> Message end 15:34:58.716 -> 250 2.0.0 Ok: queued as 4PpdQr6wJwzYcmV 15:34:58.716 -> 221 2.0.0 Bye 15:34:58.716 -> Statut de l'envoi avec piece jointe : 15:34:58.809 -> 1 15:34:58.809 -> resp Code: 0 15:34:58.809 -> Description : Message sent! 15:34:58.856 -> Message sent!
However, this is a copy paste of this part of the file sending code..
Thank -
1 April 2023 at 18:51 #24998
I found it is absolutely necessary to have during a file transfer to have started the SD card via: SD.begin (pinCS_SD);
Which is normally the case but in my tests I only tried to send the file without having ever written on the SD so without having started the card…Nevertheless, I still have problems with emailsende error codes now I have a resp.code = 235 so not 0 and suddenly I redo several tests while the emails arrive well despite the code 235!
WHAT IS THIS ERROR CODE?
THANKS
-
-
AuthorPosts
- You must be logged in to reply to this topic.