diff options
author | Araq <rumpf_a@web.de> | 2019-09-20 20:10:13 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-09-21 06:43:37 +0200 |
commit | f576df2bcc990acc62591ff8cfc27be729530785 (patch) | |
tree | 5332e1ed111d77c832784a0aaed125d5b755ab77 | |
parent | 05e80e1cda2b5c955027eff5b41f22f6c17ada08 (diff) | |
download | Nim-f576df2bcc990acc62591ff8cfc27be729530785.tar.gz |
smtp: renamed starttls to startTls
-rw-r--r-- | lib/pure/smtp.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pure/smtp.nim b/lib/pure/smtp.nim index 02d6f6f54..577f6174e 100644 --- a/lib/pure/smtp.nim +++ b/lib/pure/smtp.nim @@ -26,7 +26,7 @@ ## smtpConn.sendmail("username@gmail.com", @["foo@gmail.com"], $msg) ## ## -## Example for starttls use: +## Example for startTls use: ## ## ## .. code-block:: Nim @@ -35,7 +35,7 @@ ## @["foo@gmail.com"]) ## let smtpConn = newSmtp(debug=true) ## smtpConn.connect("smtp.mailtrap.io", Port 2525) -## smtpConn.starttls() +## smtpConn.startTls() ## smtpConn.auth("username", "password") ## smtpConn.sendmail("username@gmail.com", @["foo@gmail.com"], $msg) ## @@ -180,8 +180,8 @@ proc connect*(smtp: Smtp | AsyncSmtp, await smtp.checkReply("220") await smtp.debugSend("HELO " & address & "\c\L") await smtp.checkReply("250") - -proc starttls*(smtp: Smtp | AsyncSmtp, sslContext: SSLContext = nil) {.multisync.} = + +proc startTls*(smtp: Smtp | AsyncSmtp, sslContext: SSLContext = nil) {.multisync.} = ## Put the SMTP connection in TLS (Transport Layer Security) mode. ## May fail with ReplyError await smtp.debugSend("STARTTLS\c\L") |