Skip to content

Commit

Permalink
Avoid flattening messages in esmtp_client - the socket will do that.
Browse files Browse the repository at this point in the history
  • Loading branch information
archaelus committed Dec 3, 2010
1 parent 2b41593 commit 223efa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/esmtp_client.erl
Expand Up @@ -48,8 +48,8 @@ sendemail({Host,Port,SSL,Login},Ehlo,From,To,Msg) ->
end,
{ok, S10, {250, _, _}} = esmtp_sock:command(AuthS, {mail_from, From}),
{ok, S11, {250, _, _}} = esmtp_sock:command(S10, {rcpt_to, To}),
{ok, S12, {250, _, _}} = esmtp_sock:send_data(S11, erlang:iolist_to_binary(Msg)),
ok = esmtp_sock:close(S12).
{ok, S12, {250, _, _}} = esmtp_sock:send_data(S11, Msg),
esmtp_sock:close(S12).

is_mx({_Host,Port}) when is_integer(Port) -> true;
is_mx({_Host,Port,ssl,_Login}) when is_integer(Port) -> true;
Expand Down

0 comments on commit 223efa4

Please sign in to comment.