2 #include "../acl_cpp_define.hpp" 3 #include "../stdlib/string.hpp" 4 #include "../stdlib/noncopyable.hpp" 7 #if !defined(ACL_MIME_DISABLE) 37 mail_message& set_auth(
const char* user,
const char* pass);
70 mail_message& set_delivered_to(
const char* delivered_to);
130 const char* content_type);
138 bool save_to(
const char* filepath);
145 bool build_header(
string& out);
216 return delivered_to_;
219 const std::vector<rfc822_addr*>&
get_to()
const 228 const std::vector<rfc822_addr*>&
get_cc()
const 237 const std::vector<rfc822_addr*>&
get_bcc()
const 256 const char* get_header_value(
const char*
name)
const;
263 static void create_boundary(
const char*
id,
string& out);
268 char* transfer_encoding_;
277 std::vector<rfc822_addr*> to_list_;
278 std::vector<rfc822_addr*> cc_list_;
279 std::vector<rfc822_addr*> bcc_list_;
280 std::vector<rfc822_addr*> recipients_;
282 std::vector<std::pair<char*, char*> > headers_;
283 std::vector<mail_attach*> attachments_;
288 void add_addrs(
const char* in, std::vector<rfc822_addr*>& out);
289 bool append_addr(
const rfc822_addr& addr,
string& out);
292 bool append_addrs(
const char*
name,
293 const std::vector<rfc822_addr*>& addrs,
string& out);
294 bool append_message_id(
string& out);
295 bool append_subject(
const char* subject,
string& out);
296 bool append_date(
string& out);
298 bool append_multipart(
ofstream& fp);
303 #endif // !defined(ACL_MIME_DISABLE) const char * get_auth_user() const
const rfc822_addr * get_reply_to() const
HTTP_API void const char * name
const std::vector< rfc822_addr * > & get_recipients() const
const std::vector< rfc822_addr * > & get_bcc() const
const std::vector< rfc822_addr * > & get_to() const
const rfc822_addr * get_return_path() const
const rfc822_addr * get_delivered_to() const
const rfc822_addr * get_sender() const
const char * get_email() const
const rfc822_addr * get_from() const
const char * get_auth_pass() const
const std::vector< rfc822_addr * > & get_cc() const