Ez nem a komplett kód ,ez egy olyan program ami gombnyomásra küldi az e mailt-t.
Kód: Egész kijelölése
// Variables for this program.
//
// Variable for reading the digital status
int intButtonState = 0;
// ******************************** Arduino network information
// Your Ehternet Shield MAC address // Ehternet cím
byte mac[] = { 0x90, 0xA2, 0xDA, 0x0D, 0x23, 0x86 };
// Home IP address data (if unable to use DHCP)
byte ip[] = { 192, 168, 1, 108 };
byte subnet[] = { 255, 255, 255, 0 };
byte gateway[] = { 192, 168, 1, 1 };
// Data for COMCAST SMTP mail server - NOTE *This changes*
byte smtpServerIP[] = { 76, 96, 62, 117 };
String smtpServerName = "smtp.comcast.net";
// Login data for COMCAST (already in MIME Base64 format)
String UserName64 = "dXNlcm5hbWU=";
String Password64 = "cGFzc3dvcmQ=";
// ******************************** Mail information
String Sender = "someone@comcast.net";
String Recipient = "others@theplace.com";
String Subject = "Arduino Button Click!";
String Body = "Button attached to digital input 2 pressed down.";
// ******************************** Arduino network connection
String ServerResponse="";
EthernetClient client;