From 634e50b4b128a17afdfea92b889a074468ec24a1 Mon Sep 17 00:00:00 2001 From: jschweinsberg Date: Sun, 22 Mar 2015 17:23:21 +0100 Subject: [PATCH] Fixed typo which prevented to send mails via AsyncSmtp --- lib/pure/smtp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/smtp.nim b/lib/pure/smtp.nim index 26f0c95919..81198f9e1f 100644 --- a/lib/pure/smtp.nim +++ b/lib/pure/smtp.nim @@ -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