MCPcopy Create free account
hub / github.com/acl-dev/acl / build

Method build

lib_acl_cpp/src/smtp/mail_body.cpp:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool mail_body::build(const char* in, size_t len, const char* content_type,
95 const char* charset, mime_code& coder, string& out) const
96{
97 out.format_append("Content-Type: %s;\r\n", content_type);
98 out.format_append("\tcharset=\"%s\"\r\n", charset);
99 out.format_append("Content-Transfer-Encoding: %s\r\n\r\n",
100 coder.get_encoding_type());
101 coder.encode_update(in, (int) len, &out);
102 coder.encode_finish(&out);
103 return true;
104}
105
106bool mail_body::build_html(const char* in, size_t len,
107 const char* charset, string& out) const

Callers

nothing calls this directly

Calls 2

encode_updateMethod · 0.45
encode_finishMethod · 0.45

Tested by

no test coverage detected