Fixed typo which prevented to send mails via AsyncSmtp

This commit is contained in:
jschweinsberg
2015-03-22 17:23:21 +01:00
parent e7d7097919
commit 634e50b4b1

View File

@@ -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