Skip to content

Commit

Permalink
Notify_util passes port as binary string to gen smtp client, it wants…
Browse files Browse the repository at this point in the history
… an int
Michael Dunton authored and Michael Dunton committed Oct 24, 2014
1 parent 6f86abc commit cecc751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/notify/src/notify_util.erl
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ send_email(From, To, Email) ->
Username = wh_util:to_list(whapps_config:get(<<"smtp_client">>, <<"username">>, <<"">>)),
Password = wh_util:to_list(whapps_config:get(<<"smtp_client">>, <<"password">>, <<"">>)),
Auth = wh_util:to_list(whapps_config:get(<<"smtp_client">>, <<"auth">>, <<"never">>)),
Port = wh_util:to_list(whapps_config:get(<<"smtp_client">>, <<"port">>, <<"25">>)),
Port = wh_util:to_integer(whapps_config:get(<<"smtp_client">>, <<"port">>, <<"25">>)),

lager:debug("sending email to ~s from ~s via ~s", [To, From, Relay]),
ReqId = get('callid'),

0 comments on commit cecc751

Please sign in to comment.