Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smtp_server_example: fix DATA response #338

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading