2 #include "../acl_cpp_define.hpp" 3 #include "../stdlib/noncopyable.hpp" 4 #include "../stream/socket_stream.hpp" 7 #if !defined(ACL_MIME_DISABLE) 30 smtp_client(
const char* addr,
int conn_timeout = 60,
47 bool send(
const mail_message& message,
const char* email = NULL);
78 const char* get_status()
const;
89 bool write(
const char* data,
size_t len);
106 bool vformat(
const char*
fmt, va_list ap);
140 bool auth_login(
const char* user,
const char* pass);
148 bool mail_from(
const char* from);
156 bool rcpt_to(
const char* to);
173 bool send_email(
const char* filepath);
219 bool to_recipients(
const std::vector<rfc822_addr*>& recipients);
224 #endif // !defined(ACL_MIME_DISABLE) ACL_API ACL_VSTRING const char * format
socket_stream & get_stream(void)
ACL_API void const char * fmt