Fix compile: Move addr, port to connect in smtp

Following fecad72e02 , moved address and port to `connect` from `newAsyncSmtp` , forum compiles again.
This commit is contained in:
Silvio 2017-04-19 15:03:33 +02:00 committed by GitHub
commit 57f5a81e48

View file

@ -110,8 +110,8 @@ proc sendMail(config: Config, subject, message, recipient: string, from_addr = "
echo("[WARNING] Cannot send mail: no smtp server configured (smtpAddress).")
return
var client = newAsyncSmtp(config.smtpAddress, Port(config.smtpPort))
await client.connect()
var client = newAsyncSmtp()
await client.connect(config.smtpAddress, Port(config.smtpPort))
if config.smtpUser.len > 0:
await client.auth(config.smtpUser, config.smtpPassword)