B
Size: a a a
B
AB
IK
IK
LL
B
B
Email = {<<"text">>, <<"html">>, [
{<<"From">>, <<"me@example.com">>},
{<<"To">>, <<"you@example.com">>},
{<<"Subject">>, <<"This is a test">>}],
#{content_type_params => [
{<<"charset">>, <<"US-ASCII">>}],
disposition => <<"inline">>
},
<<"This is a <strong>HTML</strong> message with some non-ascii characters øÿ\r\nso there">>},
Encoded = mimemail:encode(Email)
B
B
B
:gen_smtp_client.deliver(
socket,
{from, [to],
"Subject: #{content.subject}\r\nFrom: <#{from}>\r\nTo: <#{to}>\r\n\r\n #{content.message}"}
)
B
AB
B
IK
B
AB
B
"Subject: #{content.subject}\r\nFrom: <#{from}>\r\nTo: <#{to}>\r\n\r\n #{content.message}"}
AB
B
AB
"Subject: #{content.subject}\r\nFrom: <#{from}>\r\nTo: <#{to}>\r\n\r\n #{content.message}"}