Hello everyone, I was wondering if it is possible to use Arduino Uno and Ethernet shield to create a Email notification without being connected to a PC all the time. The notification method I want is different LED lights and filter those LED light colors to certain persons' emails. What is need to be done for this? Any help would be appreciated.
This helps, but I was looking for different LED colors for specified people's emails. Like if it was from you it will turn on a green light and it was from my dad it would turn on a blue light and so on. I want up to 4 or 5 colors. Blue, Yellow, Red, Green, and White etc. Also it talks about the changing the server, I have no idea what s/he means by that. Though I have an understanding the Arduino code might not be enough when using the ethernet shield. A more detailed link or guidance will be appreciated so much.
To adapt the given code for your needs you need to have some background in IP, TCP and IMAP protocols,
so make sure you get a basic idea of how those work.
After that you can have a look at the arduino Ethernet library to see
what tools it provides to work with the network.
Also you need to have a look at how the LEDs work in arduino, how to connect different color leds to your board and how to turn each of them on and off.
this part is the connection to your email provider, check the settings you ordinarily use to read your mail with say thunderbird or outlook, so in the example the connection is made to imap.free.fr, you might want smth different say google mail:
byte webmail[] = {212, 27, 48, 2}; // imap.free.fr
char user[] = "yourname"; // your user name
char pass[]="yourpass"; // your password
This part is where you read reply from the server, and here again you need to check IMAP protocol to see what kind of reply you will get from the server.
c=client.read();
Serial.print(c);
 if (c==matchseq[j]) {
   j++;
  }
Then you will just need to match a certain reply from the server with a certain led action.