mbed Weather Platform firmware http://mbed.org/users/okini3939/notebook/mbed-weather-platform-firmware/
Dependencies: ChaNFSSD EthernetNetIf I2CLEDDisp Agentbed ChaNFSUSB ILinterpreter mbed BMP085 WeatherMeters ConfigFile ChaNFS I2CLCD
TinyNet/TinySMTP.h@3:058292da2cee, 2011-09-07 (annotated)
- Committer:
- okini3939
- Date:
- Wed Sep 07 16:03:54 2011 +0000
- Revision:
- 3:058292da2cee
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okini3939 | 3:058292da2cee | 1 | /* |
okini3939 | 3:058292da2cee | 2 | * mbed Tiny SMTP Client |
okini3939 | 3:058292da2cee | 3 | * Copyright (c) 2011 Hiroshi Suga |
okini3939 | 3:058292da2cee | 4 | * Released under the MIT License: http://mbed.org/license/mit |
okini3939 | 3:058292da2cee | 5 | */ |
okini3939 | 3:058292da2cee | 6 | |
okini3939 | 3:058292da2cee | 7 | /** @file |
okini3939 | 3:058292da2cee | 8 | * @brief Tiny SMTP Client |
okini3939 | 3:058292da2cee | 9 | */ |
okini3939 | 3:058292da2cee | 10 | |
okini3939 | 3:058292da2cee | 11 | #ifndef TinySMTP_h |
okini3939 | 3:058292da2cee | 12 | #define TinySMTP_h |
okini3939 | 3:058292da2cee | 13 | |
okini3939 | 3:058292da2cee | 14 | //#define DEBUG |
okini3939 | 3:058292da2cee | 15 | |
okini3939 | 3:058292da2cee | 16 | #define SMTP_PORT 25 |
okini3939 | 3:058292da2cee | 17 | #define SMTP_TIMEOUT 15000 // ms |
okini3939 | 3:058292da2cee | 18 | |
okini3939 | 3:058292da2cee | 19 | /** send mail |
okini3939 | 3:058292da2cee | 20 | * @param to mail address |
okini3939 | 3:058292da2cee | 21 | * @param from mail address |
okini3939 | 3:058292da2cee | 22 | * @param data mail body |
okini3939 | 3:058292da2cee | 23 | * @param host mail server |
okini3939 | 3:058292da2cee | 24 | * @param data mail body |
okini3939 | 3:058292da2cee | 25 | * @param user auth username (or NULL) |
okini3939 | 3:058292da2cee | 26 | * @param pwd auth password (or NULL) |
okini3939 | 3:058292da2cee | 27 | * @return 0:success, -1:failue |
okini3939 | 3:058292da2cee | 28 | */ |
okini3939 | 3:058292da2cee | 29 | int sendmail (char *to, char *from, char *data, Host *host, char *user, char *pwd); |
okini3939 | 3:058292da2cee | 30 | |
okini3939 | 3:058292da2cee | 31 | #endif |