Tiny SMTP Client
Dependencies: EthernetNetIf mbed
TinySMTP.h
- Committer:
- okini3939
- Date:
- 2011-07-28
- Revision:
- 1:05064fe7ea1e
- Parent:
- 0:7440c9b170aa
File content as of revision 1:05064fe7ea1e:
/* * mbed Tiny SMTP Client * Copyright (c) 2011 Hiroshi Suga * Released under the MIT License: http://mbed.org/license/mit */ /** @file * @brief Tiny SMTP Client */ #ifndef TinySMTP_h #define TinySMTP_h #define DEBUG #define SMTP_PORT 25 #define SMTP_TIMEOUT 15000 // ms /** send mail * @param to mail address * @param from mail address * @param data mail body * @param host mail server * @param data mail body * @param user auth username (or NULL) * @param pwd auth password (or NULL) * @return 0:success, -1:failue */ int sendmail (char *to, char *from, char *data, Host *host, char *user, char *pwd); #endif