My Arduino Ethernet has arrived and I've been able to make it connect to google and do a search, so it is working pretty well.
I'm having a problem sending email though.
I believe the three magic numbers are correct:
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x6A, 0xC7 }; // Taken from the back of the board
byte ip[] = {192,168,1,101}; // ip of the Arduino on my router, works ok with the google example
byte server[] = {217,15,217,10} ; // mail.nemo.it from domaintoiup.com
Then I do this...
Serial.println("connected");
client.println("HELO itismeletschat"); /* say hello (statement after helo is needed but irrelevant)*/
client.println("MAIL From: xxxx@nemo.it"); /* identify sender, this should be the same as the smtp server you are using */
client.println("RCPT To: help@ransen.com"); /* identify recipient */
client.println("DATA");
client.println("To: help@ransen.com"); /* identify recipient */
client.println("Subject: You Have Arduino Mail!!"); /* insert subject */
client.println("Please let me know it worked!!!"); /* insert body */
client.println("."); /* end email */
client.println("QUIT"); /* terminate connection */
client.println();
Serial.println ("Message sent\n") ;
I get "connected" and "Message sent" on the serial monitor, but no message arrives.
I suspect that I need a login and password...? And if so what is the sequence ?
Or am I missing something else?