Pages: [1]   Go Down
Author Topic: Receiving digital input/SMS or email output  (Read 1134 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I stumbled upon the arduino platform and was wondering if it would work in my situation.  I am trying to receive a digital output from another micro controller.  The controller outputs an +8VDC pulsed signal when an alarm condition (i.e. hi/lo temp) is received.  Could the arduino receive the digital output and then send either a text message or email notification?  This is the beginning stages of the project, and I'm just trying to get an idea if the hardware available will support this.

Thank you,

Camron
Logged

Offline Offline
Edison Member
*
Karma: 8
Posts: 1341
If you're not living on the Edge, you're taking up too much space!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Certainly.  I prefer Wifly and Mifi (if needed), instead of a GSM shield.
This makes it easier and it's free:
http://www.smtp2go.com
Logged

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

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

I've been trying to use smpt2go ...
I've searching this forum and also with google..
but have got just this error:

smtpcorp.com ESMTP Exim 4.72 Mon, 18 Mar 2013
250-smtpcorp.com Hello *****
250-SIZE 52428800
250-PIPELINING
250-AUTH CRAM-MD5 PLAIN LOGIN
250-STARTTLS
250 HELP
334 **base64username**
334 **base64pwd**
535 Incorrect authentication data
250 OK
550 relay refused *@gmail.com/* unauthenticated
503-All RCPT commands were rejected with this error:

My code is

if (client.connect(server_email,2525)) {
    Serial.println("connected to email server");
    delay(1000);
    client.println("EHLO myusername 1.2.3.4);
    client.println("AUTH LOGIN");                         
    // used this to base64:"http://base64-encoder-online.waraxe.us/"
    delay(1000);
    client.println("base64codedusername");       
    delay(1000);
    client.println("base64codedpwd");                                                   
    delay(1000);
    client.println("MAIL FROM:<myaddress@gmail.com>"); 
    delay(1000);
    client.println("RCPT TO:<myaddress@gmail.com>");
    delay(1000);
    client.println("from:myaddress@gmail.com");
    delay(1000);
    client.println("to:myaddress@gmail.com");
    delay(1000);
    client.println("SUBJECT: Testing subject to arduino ethernet shield");
    delay(1000);
    client.println("This is the line body.");
    delay(1000);
    client.println(".");
    delay(1000);
    client.println(".");
    delay(1000);
    client.println("QUIT");
    delay(1000);
    }
    eRcv();
  } else {
    Serial.println("connection failed to smtp2go");
 
I have also tried to replace all delay(1000) with
          for(int i=0; i<999; ++i){
      if(client.read() > 0)     
      break;

What can be wrong?
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9541
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What can be wrong?

Code:
if (client.connect(server_email,2525))

Maybe the port should be 25 instead of 2525.

Code:
if (client.connect(server_email, 25))
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Pages: [1]   Go Up
Jump to: