/* Libsmtp - (C)opyright 2000-2001 Kristian Van Der Vliet This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifndef _PLATON_NET_SMTP_H #define _PLATON_NET_SMTP_H #define SMTP_PORT 25 enum smtp_return_codes { SMTP_OK = 0, SMTP_UNKNOWN_SERVER, SMTP_CONNECT_FAILED, SMTP_TIMED_OUT, SMTP_INVALID_FROM, SMTP_INVALID_TO, SMTP_SEND_FAILED, SMTP_DISCONNECT_FAILED }; #ifdef __cplusplus extern "C" { #endif int smtp_connect(const char* zServer, int nPort); int smtp_sendmail(const char* zTo, const char* zFrom, const char* zBody); int smtp_disconnect(void); int smtp_set_timeout(unsigned long nTimeout); #ifdef __cplusplus } #endif #endif /* _PLATON_NET_SMTP_H */