Skip to content

Commit

Permalink
Delete quotes to prevent worng names in From
Browse files Browse the repository at this point in the history
  • Loading branch information
danyanya committed Jan 10, 2020
1 parent ea94c6b commit 5bbfd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func callSendmailMutt(req mailReq) error {
var c1 = exec.Command("echo", "-e", req.Body)
var c2 = exec.Command("mutt", args...)
c2.Env = os.Environ()
c2.Env = append(c2.Env, fmt.Sprintf("EMAIL='%s'", req.From))
c2.Env = append(c2.Env, fmt.Sprintf("EMAIL=%s", req.From))
c2.Stdin, _ = c1.StdoutPipe()
c2.Stdout = os.Stdout
_ = c2.Start()
Expand Down

0 comments on commit 5bbfd79

Please sign in to comment.