Feat(main.go): Trim whitespace from message.
2 files changed, 3 insertions(+), 1 deletions(-) A .gitignore M main.go
A .gitignore => .gitignore +1 -0
@@ 0,0 1,1 @@ +ezmail
M main.go => main.go +2 -1
@@ 10,6 10,7 @@ import ( "log" "net/smtp" "os" + "strings" "text/template" ) @@ 69,7 70,7 @@ func run(fromPass, fromAddr, fromDomain string, fromPort int, toAddr string, sub "From": fromAddr, "To": toAddr, "Subject": sub, - "Body": string(b), + "Body": strings.TrimSpace(string(b)), } )