Add From to every outgoing email
This commit is contained in:
parent
eab5d985d0
commit
520ec0fa02
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue