i have an W5100. I said when i use EMailsender + Temperaturmeasurement it works and it sends an email after the Temperature is over 40C but when i add LCD screen to it it gives me this error: Sending status:
0
2
About Memory i have 20% free on both memories. its very interesting why it wouldnt work when i add lcd that doesnt affect in any way.
I hope you understood me
i dont quite understand the question. If you mean Internet its Telekom.
Yesterday i tried the email sender and the temperature measuring and it worked. As soon as i added LCD Screen to it it didnt work anymore.
Could you help me there mate.
So Actually i did everything as told and my code is the same as yours i did 2FA on the sendgrid and i confirmed my mobile number too.
– I also did a Sender Authentication From where to where it needs to go // is this necessecary?
– I used the SMPT Relay where i made an api key and i used it for the apikey and apikey passowrd // is this correct?
– When i send a mail through arduino the Intnernet is working because i can see that it makes TCP connection to Sendgrid servers.
– Im sending from an Outlook Email to a Gmail Email and i dont know if that is right.
-do you need to pay sendgrid at anypoint because i want to use it for my self and send some email time to time ?
Hee i will put my Code (i want it to keep it very simple) maybe you can see any mistakes 🙂
#include <Ethernet.h>
//#define DEFAULT_EMAIL_NETWORK_TYPE_ARDUINO NETWORK_W5100
#include <Arduino.h>
#include <SPI.h>
#include <EMailSender.h>
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
EMailSender emailSend("apikey", "apikey-psw", "<my sendgrid email>", "smtp.sendgrid.net", 587);
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
// while (!Serial) {}
Serial.println("Starting!");
// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
while(1);
}
Serial.print("IP address ");
Serial.println(Ethernet.localIP());
EMailSender::EMailMessage message;
message.subject = "This is a Test";
message.message = "Its a Test";
EMailSender::Response resp = emailSend.send("the email i want the maessage to go", message);
Serial.println("Sending status: ");
Serial.println(resp.status);
Serial.println(resp.code);
Serial.println(resp.desc);
}
void loop()
{
Serial.begin(9600);
Serial.println("Starting!");
}
Thank you because im trying for a Week to get this working 🙂
-And im using the EMailSender library and Ethernet library but my Bytes are full and i cant execute the Code. Is there any minimised version for w5100.
– im trying the method with sendgrid where i put API, Email, etc. But my Bytes are full and i wanted to ask do you have any idea or maybe another library i could use so that my code would be optimized to work when i add more stuff ?
And are there any firewall rules which i have to look closely or that could cause me problems to not be able to send an email?
Erjon
Author
Posts
Viewing 9 posts - 1 through 9 (of 9 total)
Follow:
More
Welcome to Our Family!
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.