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:
parent
d5892db647
commit
57f5a81e48
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue