1 #ifndef __SMTP_CLIENT_INCLUDE_H__ 2 #define __SMTP_CLIENT_INCLUDE_H__ 14 #elif defined(SMTP_DLL) // || defined(_WINDLL) 15 # if defined(SMTP_EXPORTS) || defined(protocol_EXPORTS) 17 # define SMTP_API __declspec(dllexport) 19 # elif !defined(SMTP_API) 20 # define SMTP_API __declspec(dllimport) 22 #elif !defined(SMTP_API) 32 #define SMTP_FLAG_PIPELINING (1 << 0) 33 #define SMTP_FLAG_AUTH (1 << 1) 34 #define SMTP_FLAG_8BITMIME (1 << 2) 35 #define SMTP_FLAG_DSN (1 << 3) 36 #define SMTP_FLAG_VRFY (1 << 4) 37 #define SMTP_FLAG_ETRN (1 << 5) 38 #define SMTP_FLAG_SIZE (1 << 6) 51 int rw_timeout,
int line_limit);
SMTP_API int smtp_greet(SMTP_CLIENT *client, const char *name, int ehlo)
SMTP_API SMTP_CLIENT * smtp_open(const char *addr, int conn_timeout, int rw_timeout, int line_limit)
SMTP_API int smtp_send_file(SMTP_CLIENT *client, const char *filepath)
HTTP_API void const char * name
struct SMTP_CLIENT SMTP_CLIENT
SMTP_API int smtp_printf(SMTP_CLIENT *client, const char *fmt,...)
SMTP_API int smtp_noop(SMTP_CLIENT *client)
SMTP_API int smtp_auth(SMTP_CLIENT *client, const char *user, const char *pass)
SMTP_API int smtp_get_banner(SMTP_CLIENT *client)
SMTP_API int smtp_send(SMTP_CLIENT *client, const char *src, size_t len)
SMTP_API int smtp_data_end(SMTP_CLIENT *client)
SMTP_API void smtp_close(SMTP_CLIENT *client)
SMTP_API int smtp_data(SMTP_CLIENT *client)
SMTP_API int smtp_ehlo(SMTP_CLIENT *client, const char *ehlo)
SMTP_API int smtp_mail(SMTP_CLIENT *client, const char *from)
SMTP_API int smtp_helo(SMTP_CLIENT *client, const char *helo)
SMTP_API int smtp_send_stream(SMTP_CLIENT *client, ACL_VSTREAM *in)
ACL_API void const char * fmt
SMTP_API int smtp_quit(SMTP_CLIENT *client)
SMTP_API int smtp_rset(SMTP_CLIENT *client)
SMTP_API int smtp_rcpt(SMTP_CLIENT *client, const char *to)