Go Down

Topic: Button email help? (Read 746 times) previous topic - next topic


I want to do a project that when I press a button it sends an email. I have an idea of how it will work (as in what programs) but other than that Im stuck.(;
I'm not sure what the code will be but I want to do it the same way as they did it http://learn.adafruit.com/arduino-lesson-17-email-sending-movement-detector/overview but just without the sensor. Is there anyway to do this? If so how would I set it up and what would the code be?

Thanks for the help!


Have a look at this:
It is pretty basic but should give you a good idea of a quick and easy way of checking for button presses, and gives you a circuit to work from.
If you go through the code in the link you posted it shouldn't be too hard to substitute in the button press code for the PIR stuff.


Here is the email part. Replace the "Press 'e' to send" with your button press as the trigger.


ok thanks so much for the help!


Note that what SurferTim has posted requires the Ethernet shield, whereas the adafruit code uses a pc to send the email


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131