Pages: [1]   Go Down
Author Topic: Sending email with Arduino via Breakout JS without Ethernet or WiFi shield  (Read 962 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Arduino world!

I recently got my hands on the Uno R3 and I love it!

To have Arduino connect to the web opens up many great possibilities.
Breakout JS is a project that facilitates web connectivity, without the need of the Ethernet or WiFi shield  http://breakoutjs.com/
It was very exiting for me to successfully test their Hello World example!

To your knowledge, would it be possible to have Arduino send an email at the push of a button (as per the basic setup http://arduino.cc/en/Tutorial/Button), without the Ethernet/Wifi shield or Ethernet adapters, only by using my computer as a gateway with something like Breakout JS alongside a locally running email server and custom version of the code by SurferTim http://playground.arduino.cc//Code/Email?

I guess a Processing sketch could also be an option since it can connect Arduino to the net as per this tutorial http://labs.arduino.cc/NET/GettingStarted, unfortunately I'm not sure if this will require the Ethernet/Wifi shield or Ethernet adapters, and if it can be modified to send email.

My setup:

Arduino Uno Revsion 3
Arduino IDE 1.0.5
OSX 10.6.8

Your insight and help on this matter would be very, very muh appreciated!
Oh, and pardon my noobness.

Kind regards,

Heff

PS: I did make sure to search this forum and the web about this before creating a new topic but could not find anything that answered my question.
« Last Edit: June 30, 2013, 07:12:44 pm by Heff » Logged

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12549
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know anything about that Breakout thing you mention, but if your Arduino has a USB connection to a PC then you can use the serial connection to send commands to the PC. If you have an application on the PC that receives commands from the Arduino, then from the4re it would be possible to send emails. How you do it would depend on what operating system the PC is running, but for example on Windows you could use the Gobetwino application.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi PeterH,

Thank you for your input.

I just updated my original post with this :

I guess a Processing sketch could also be an option since it can connect Arduino to the net as per this tutorial http://labs.arduino.cc/NET/GettingStarted, unfortunately I'm not sure if this will require the Ethernet/Wifi shield or Ethernet adapters, and if it can be modified to send email.

If I understand your perspective, I could (in theory) use something similar to the Processing application in the tutorial and customize it to send email on the push of a button?
Alas, Gobetwino is PC only and I'm on OSX smiley-sad
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay, I received very useful information by soundanalogous via the Breakoutjs.com forum:

"Sending an email is a server side action. Breakout is a client-side JavaScript library so you’d need to send an ajax request or post a form to a server and the server would actually send the email.

You could send an email directly from an Arduino if you have an ethernet shield or wifi shield. However you’d have to write your application in c/c++ and have the required shield.

The best option for what you want to do is to use johnny-five https://github.com/rwldrn/johnny-five . It’s similar to Breakout, but it’s server-side (nodeJS) so you can send email directly. See this article on using johnny-five to achieve exactly what you are trying to do: http://blog.sendgrid.com/how-to-send-email-with-arduino-at-ny-tech-meetup/"

To answer my own question, it is possible to send email without the ethernet/wifi shield, but not with Breakout JS.

Now go and tinker the future of technology!  smiley-lol
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 139
Posts: 5857
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Sending an email is a server side action.
No. Client side. Here is the code to prove it.
http://playground.arduino.cc/Code/Email
If you can get a client socket to load a web page from a server, you can get a client socket to send email to an email server.

There are restrictions to this, of course. You must use port 25. Port 465 (and 587?) use TLS, and the ethernet library does not support TLS. Some email servers block non-commercial ip addresses from sending email this way.

edit: Just to make it clear, when an email server sends email to another email server (relay), it sends the email as a client. Only receiving emails is a server side action.
« Last Edit: July 01, 2013, 12:05:38 pm by SurferTim » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi SurferTim,

Thank you for your insight.

I just found this:

"have the Arduino communicate with a Python program running on your computer to send an email"

http://learn.adafruit.com/downloads/pdf/arduino-lesson-17-email-sending-movement-detector.pdf

I think it should be helpful to anyone interested in sending email with Arduino, without the Ethernet shield ot WiFi shield.

Tinker on!  smiley-wink
Logged

Pages: [1]   Go Up
Jump to: