Tiny SMTP Client

Dependencies:   EthernetNetIf mbed

Revision:
0:7440c9b170aa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TinySMTP.h	Wed Jul 27 15:09:04 2011 +0000
@@ -0,0 +1,31 @@
+/*
+ * 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