From 09d5800456f214c17c1de03343d1c46f74e4aa46 Mon Sep 17 00:00:00 2001 From: Eric Cohen Date: Mon, 6 Apr 2015 13:48:55 +0300 Subject: [PATCH 1/2] Remove comma from last value in smtp config JSON Mailhog would break with: `invalid character '}' looking for beginning of object key string` --- docs/CONFIG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CONFIG.md b/docs/CONFIG.md index 25d41b9c..1b671412 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -41,7 +41,7 @@ the following structure, and set `MH_OUTGOING_SMTP` or `-outgoing-smtp`. "email": "...", "username": "...", "password": "...", - "mechanism": "PLAIN", + "mechanism": "PLAIN" } } ``` From b5d39f7c580b364f48b2acd9aa70b5e17b1080df Mon Sep 17 00:00:00 2001 From: Eric Cohen Date: Mon, 6 Apr 2015 13:50:34 +0300 Subject: [PATCH 2/2] Quote port number in smtp config JSON Mailhog would break with `json: cannot unmarshal number into Go value of type string` --- docs/CONFIG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CONFIG.md b/docs/CONFIG.md index 25d41b9c..eb4f8f42 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -37,7 +37,7 @@ the following structure, and set `MH_OUTGOING_SMTP` or `-outgoing-smtp`. "server name": { "name": "server name", "host": "...", - "port": 587, + "port": "587", "email": "...", "username": "...", "password": "...",