Skip to content

Commit

Permalink
smtp_server_example: fix DATA response
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-klassen committed Apr 8, 2024
1 parent 21c3e24 commit 3b0672b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ DATA
354 enter mail, end with line containing only '.'
Good evening gentlemen, all your base are belong to us.
.
250 queued as #Ref<0.0.0.47>
250 queued as d98ae19ee87f0741ac9ba90d7046f0c5
QUIT
221 Bye
Connection closed by foreign host.
Expand Down
2 changes: 1 addition & 1 deletion src/smtp_server_example.erl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ queue_or_deliver(From, To, Data, Reference, State) ->
),
% ... should actually handle the email,
% if `ok` is returned we are taking the responsibility of the delivery.
{ok, ["queued as ~s", Reference], State};
{ok, ["queued as ", Reference], State};
lmtp ->
?LOG_INFO("message from ~s delivered to ~p, body length ~p", [From, To, Length], ?LOGGER_META),
Multiple = [{ok, ["delivered to ", Recipient]} || Recipient <- To],
Expand Down

0 comments on commit 3b0672b

Please sign in to comment.