Merge pull request #2385 from jschweinsberg/asyncSmtp

Fixed typo which prevented to send mails via AsyncSmtp
This commit is contained in:
Dominik Picheta 2015-03-23 09:09:16 +00:00
commit 9c2da4cb62

View file

@ -238,7 +238,7 @@ proc sendMail*(smtp: AsyncSmtp, fromAddr: string,
await smtp.sock.send("MAIL FROM:<" & fromAddr & ">\c\L") await smtp.sock.send("MAIL FROM:<" & fromAddr & ">\c\L")
await smtp.checkReply("250") await smtp.checkReply("250")
for address in items(toAddrs): 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") await smtp.checkReply("250")
# Send the message # Send the message