1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

api: add new config SMTP_PORT

This commit is contained in:
Adhityaa
2018-06-09 15:22:49 +05:30
parent 9d5e4f9f96
commit c794c40392
5 changed files with 6 additions and 3 deletions

View File

@ -53,6 +53,7 @@ func TestSmtpConfigureEmptyAddress(t *testing.T) {
os.Setenv("SMTP_USERNAME", "test@example.com")
os.Setenv("SMTP_PASSWORD", "hunter2")
os.Setenv("SMTP_HOST", "smtp.commento.io")
os.Setenv("SMTP_PORT", "25")
if err := smtpConfigure(); err == nil {
t.Errorf("expected error not found; SMTP should not be configured when SMTP_FROM_ADDRESS is empty")