Merge pull request #2385 from jschweinsberg/asyncSmtp
Fixed typo which prevented to send mails via AsyncSmtp
This commit is contained in:
commit
9c2da4cb62
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ proc sendMail*(smtp: AsyncSmtp, fromAddr: string,
|
|||
await smtp.sock.send("MAIL FROM:<" & fromAddr & ">\c\L")
|
||||
await smtp.checkReply("250")
|
||||
for address in items(toAddrs):
|
||||
await smtp.sock.send("RCPT TO:<" & smtp.address & ">\c\L")
|
||||
await smtp.sock.send("RCPT TO:<" & address & ">\c\L")
|
||||
await smtp.checkReply("250")
|
||||
|
||||
# Send the message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue