Merge pull request #65 from FedericoCeratto/master

Add From to every outgoing email
This commit is contained in:
Dominik Picheta 2015-09-05 00:19:16 +01:00
commit f820838282

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)