SMS AND EMAIL WORKING
Dependents: Application-SimpleSMTPClient_HelloWorld final
Fork of SimpleSMTPClient by
Diff: SimpleSMTPClient.cpp
- Revision:
- 6:f6efc3cc8d13
- Parent:
- 5:846af4db63c5
- Child:
- 7:0847fa2294a0
--- a/SimpleSMTPClient.cpp Sat Dec 15 14:11:50 2012 +0000 +++ b/SimpleSMTPClient.cpp Wed Dec 19 02:44:59 2012 +0000 @@ -163,10 +163,10 @@ // mail Body smtp.send("DATA\r\n", 6); + if (receiveMessage(354)) goto exit; + smtp.send(getHeader(), strlen(getHeader())); smtp.send(getMessage(), strlen(getMessage())); - if (receiveMessage(354)) goto exit; - smtp.send("\r\n.\r\n", 5); if (receiveMessage(250)) goto exit; #ifdef __DEBUG__