Soon we will no longer be able to send emails with EMailSender via Arduinos!
For sending files which no longer worked with EmailSender and Sendgrid (Gmail).
I went through an FTP server on Rapsberry, the Arduinos send the message and the attachment to the Raspberry and it is the Raspberry which sends the emails…
For messages without attachments since no French ISPs now work with EmailSender for security reasons, I only have Sendgrid left (but for how much longer)…
THANKS
A+
Hello, is there a way to send emails via ssl from Arduinos mega by adding an stm32 (for 5 Arduinos) or something else, knowing that some emails send attachments from the micro SD of the w5000 shields?
THANKS
Hello, thank you for this sad response!
I still wanted to try on an Arduino Mega and W5500 shield in SSL, so I uncommented the line you told me in EMailSenderKey.h#L81. Then I tried to compile my sketch of course I had to install the SSLClient library but this one does a #include<vector> .
So I also installed the vector library but there I always have this:
C:\Users\PC bureau Gilles\Documents\Arduino\libraries\SSLClient\src/SSLClientParameters.h:31:10: fatal error: vector: No such file or directory
#include <vector>
Did I miss something?
THANKS
PS: suddenly there is no other way to send emails with an Arduino mega and w5500 in SSL?
This reply was modified 1 year, 3 months ago by Gilles.
I wonder if resp.code as well as resp.desc should not be reset to zero between 2 calls to emailsender… between 2 calls to the emailsender function?
Has anyone tested this?
THANKS
I wonder if resp.code as well as resp.desc that must be deleted between 2 calls to emailsender…is updated between 2 calls to the emailsender function?
Indeed the code 235 comes from a 1st test with laposte.net which no longer works (passage to ssl) then the 2nd test which works is done with sendgrid returns me the same error code although the email be well sent….
If I put in 1st test with sendgrid I have well resp.code =0 and not 235….
Is this an error on my part or a bug?
THANKS
EMailSender::Response resp = emailSend.send(arrayOfEmail, nb_Recipient_Mail, message); // we send the email via la poste.net
numtest=numtest-1; // we just did one more test we decrement
if (resp.code == "0") { // we have just succeeded in sending mail
returnmail = 0; // sets retourmail to 0
reboot = 0; //we have an internet connection so we reset reboot
return (returnmail); // returns the return valuemail 0
} // it's good we exit by returning the value 0
while(nbessai > 0){ // as long as we have chosen to do a test we start again
if (resp.code != "0"){ //start another attempt to send emails
delay(20000); // we wait 20 seconds before trying again during this time we do nothing....
testconnection(); // we test the internet connection via google
if (nbtry % 2 == 0) { //to go into the loop only once out of 2 (nb even)
if (monitor == 1){Serial.println(F("send with sengrid")); }
EMailSender::Response resp = emailSend2.send(arrayOfEmail, nb_Recipient_Mail, message); // we send the email
}
else {
if (monitor == 1){Serial.println(F("send with post"));}
EMailSender::Response resp = emailSend.send(arrayOfEmail, nb_Recipient_Mail, message); // we send the email
}
numtest = numtest-1; // we just did one more test...
This reply was modified 1 year, 4 months ago by Gilles.
Hello, I finally managed to reproduce the error code 235, SMTP AUTH error (502-5.5.2 Error: command not recognized)
I don’t have more information per story despite this error I do receive an email…
Do you have an idea?
THANKS
Hello, still with my problem of sending attachments with SendGrid…
Sendgrid told me to test this: https://stackoverflow.com/questions/2730055/why-would-a-csv-attachment-appear-as-text-in-the-body
basically set content-type to:
application/octet-stream;
I found in the file line 737 this:
client.println(F(“Content-Type: Multipart/mixed; boundary=frontier”));
I tested with client.println(F(“Content-Type:application/octet-stream; boundary=frontier”));
but that didn’t change anything…
Is it here or somewhere else in your library that we can determine Content-type?
Ok thank you, I am however wired in Ethernet, but it is true that when that does not work it is all the Arduinos at the same time which seem to have this problem!
But since I have the same program in each Arduino, I was thinking more of a software problem…
Is there a way to increase the waiting time (in case of network issues)?
Sorry, I didn’t see your reply.
The debug is permanently activated but you need a PC connected to the Arduino and my Arduinos are in use on my apiary…
And in addition this error does not seem systematic..
I’ll put my dev hive back in my desktop and see if I can reproduce the problem to save the debug.
I’ll let you know.
THANKS
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
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.