Add From to every outgoing email

This commit is contained in:
Federico Ceratto 2015-09-05 00:00:12 +01:00
commit 520ec0fa02

View file

@ -30,8 +30,11 @@ proc sendMail(config: Config, subject, message, recipient: string, from_addr = "
let toList = @[recipient]
var headers = otherHeaders
headers.add(("From", from_addr))
let encoded = createMessage(subject, message,
toList, @[], otherHeaders)
toList, @[], headers)
await client.sendMail(from_addr, toList, $encoded)