Arduino uno + smtp + ethernet shield
-
Upload
israel-magana -
Category
Education
-
view
363 -
download
14
Transcript of Arduino uno + smtp + ethernet shield
Good Practices withARDUINO UNO
ARDUINO + ETHERNET SHIELD + SMTP
Made by: Israel Magañafrom: Mayatronics.net
Objetivo
● Ending this presentation, you could send an email using a private SMTP server with Arduino UNO and Ethernet Shield with a mixed code used in Arduino's forums.
What do we need?
● ETHERNET CABLE
● PROGRAMMING CABLE
● ETHERNET SHIELD
● ARDUINO UNO R3
● ENERGY AND MOTIVATION
STEP 1
● put ETHERNET SHIELD on ARDUINO UNO
STEP 2
● Connect Ethernet cable to MODEM and the other side to ETHERNET SHIELD
STEP 3
● Connect Programming Cable to ARDUINO
TESTING CODE
● The next code is free distribution and it's an extract from Arduino.cc's forums modified for this simple example and only works with simple private SMTP server with simple base 64 Auth, it doesn't work with TTLS as gmail.
Works fine in
Personal smtp provider
Code
Place SMTP server's IP
MODEM'S GATEWAYMY CASE IS 192.168.1.254
How do i find smtp server's IP?
● Run cmd● Type server's adress to be found● For Instance: mine: smtpout.asia.secureserver.net
● |
Capture IP
USER IN BASE 64
PASSWORD IN BASE 64
IF PORT 587 DOESN'T WORKTRY 465 OR 80
HOW DO I CAPTURE BASE 64 USER?
● Please access to the next webpage: ● http://base64-encoder-online.waraxe.us●
capture your email adress:● Example's code mail adress:● [email protected]● And it's converted to:● c210cEBtYXlhdHJvbmljcy5jb20=
Temporal Password
● Academic's issue:
MTIzNDU=
MAYATRONICS
Proof
● LOADING INTO ARDUINO UNO R3
Type “e” into Serial monitor
SMTP's Magic happened
Checking my e-mail out
E-mail is temporal and it will not be able next months
● Try it with your own e-mail private servers
Do you want .ino code?
● Please Like Presentation● Share it into social networks● Access to mayatronics.net ● Direct link: Here (ad inc)● Send doubts and comments to:● [email protected]●