SMS WORKING

Dependencies:   EthernetInterface NTPClient SimpleSMTPClient TextLCD mbed-rtos mbed

Fork of Application-SimpleSMTPClient_HelloWorld by avnish aggarwal

Files at this revision

API Documentation at this revision

Comitter:
bhakti08
Date:
Tue Apr 29 01:58:58 2014 +0000
Parent:
4:89d1b1db4605
Commit message:
working

Changed in this revision

SimpleSMTPClient.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 89d1b1db4605 -r 758769bf30b8 SimpleSMTPClient.lib
--- a/SimpleSMTPClient.lib	Mon May 20 22:12:47 2013 +0000
+++ b/SimpleSMTPClient.lib	Tue Apr 29 01:58:58 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/sunifu/code/SimpleSMTPClient/#27053679f44b
+http://mbed.org/users/bhakti08/code/SimpleSMTPClient/#085f37025cb9
diff -r 89d1b1db4605 -r 758769bf30b8 main.cpp
--- a/main.cpp	Mon May 20 22:12:47 2013 +0000
+++ b/main.cpp	Tue Apr 29 01:58:58 2014 +0000
@@ -7,16 +7,16 @@
 #include "SimpleSMTPClient.h"
 #include "TextLCD.h"
 
-#define DOMAIN "comcast.net"
-#define SERVER "smtp.comcast.net"
-#define PORT "587" //25 or 587,465(OutBound Port25 Blocking )
-#define USER "avnisha"
-#define PWD "Bubbles1"
-#define FROM_ADDRESS "avnisha@comcast.net"
+#define DOMAIN "comcast.net" //gmail.com
+#define SERVER "smtp.comcast.net" //smtp.gmail.com
+#define PORT "587" //25 or 587,465(OutBound Port25 Blocking ) 465
+#define USER "patkionkar" //bhakti.kulkarni08
+#define PWD "book#jungle" //bhakti0887
+#define FROM_ADDRESS "patkionkar@comcast.net" //bhakti.kulkarni08
 // TO_ADDRESS (Of some address is possible.)
 // to-user1@domain, to-user2@domain, to-user3@domain ....
 // The TO_ADDRESS are less than 128 characters.
-#define TO_ADDRESS "avnisha@comcast.net" 
+#define TO_ADDRESS "patkionkar@comcast.net" 
 
 #define SUBJECT "Test Mail"
 
@@ -62,6 +62,7 @@
     smtp.addMessage("TEST TEST TEST\r\n");
   
     ret = smtp.sendmail(SERVER, USER, PWD, DOMAIN,PORT,SMTP_AUTH_PLAIN);
+    printf("return value: %d\r\n",ret);
  
     if (ret) {
         printf("E-mail Transmission Error\r\n");
@@ -74,7 +75,7 @@
     //
     
     smtp.setFromAddress(FROM_ADDRESS);
-    smtp.setToAddress("5105794214@txt.att.net");                // MODIFY for carrier
+    smtp.setToAddress("4086851676@txt.att.net");                // MODIFY for carrier
     smtp.setMessage(SUBJECT,msg);
     smtp.addMessage("TEST TEST TEST\r\n");