From 3b0672b6d12add2e30adb2492d6e3aff341f5419 Mon Sep 17 00:00:00 2001 From: ts-klassen Date: Mon, 8 Apr 2024 21:14:29 +0900 Subject: [PATCH] smtp_server_example: fix DATA response --- README.md | 2 +- src/smtp_server_example.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 07e6cb4..c746a7c 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/smtp_server_example.erl b/src/smtp_server_example.erl index c2d8c83..88a5c10 100644 --- a/src/smtp_server_example.erl +++ b/src/smtp_server_example.erl @@ -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],