Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Make clear that gen_smtp is listening #31

merged 1 commit into from

3 participants


This patch adds the ?MODULE in front of the message that tells where gen_smtp is listening.

In Zotonic, it is confusing that it just says "listening on 2525" which lets users think that the web server is running on that port.

So with this patch, the message will read:

11:10:20.417 [info] gen_smtp_server listening on {0,0,0,0}:2525 via tcp
@Vagabond Vagabond merged commit 156b52c into Vagabond:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/gen_smtp_server.erl
2  src/gen_smtp_server.erl
@@ -137,7 +137,7 @@ init([Module, Configurations]) ->
Protocol = proplists:get_value(protocol, NewConfig),
SessionOptions = proplists:get_value(sessionoptions, NewConfig, []),
error_logger:info_msg("~p starting at ~p~n", [?MODULE, node()]),
- error_logger:info_msg("listening on ~p:~p via ~p~n", [IP, Port, Protocol]),
+ error_logger:info_msg("~p listening on ~p:~p via ~p~n", [?MODULE, IP, Port, Protocol]),
process_flag(trap_exit, true),
ListenOptions = [binary, {ip, IP}, Family],
case socket:listen(Protocol, Port, ListenOptions) of
Something went wrong with that request. Please try again.