From 490523e732beb8061ea69f54b47bf19ce4e464c3 Mon Sep 17 00:00:00 2001 From: Jon Harper Date: Wed, 2 Mar 2016 19:10:10 +0100 Subject: [PATCH] docs, smpt-gmail: fix for people not using 2FA + formatting --- basis/smtp/smtp-docs.factor | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/basis/smtp/smtp-docs.factor b/basis/smtp/smtp-docs.factor index dfdb681ded..4b72927d0f 100644 --- a/basis/smtp/smtp-docs.factor +++ b/basis/smtp/smtp-docs.factor @@ -85,7 +85,14 @@ HELP: send-email ARTICLE: "smtp-gmail" "Setting up SMTP with gmail" "If you plan to send all email from the same address, then setting the config variable in the global namespace is the best option. The code example below does this approach and is meant to go in your " { $link ".factor-boot-rc" } "." $nl "First, we set the login and password to a " { $link } " tuple with our login. Next, we set the gmail server address with an " { $link } " object. Finally, we tell the SMTP library to use a secure connection." -{ $notes "Gmail requires the use of application-specific passwords when accessed from anywhere but their website. Visit " { $url "https://support.google.com/accounts/answer/185833?hl=en" } " to create a password for use with Factor." } +{ $notes + "Observed on 2016-03-02: Gmail has restrictions for what they consider \"less secure apps\" (these include the factor smtp client)." + { $list + { "If the account does not use 2-step verification, Gmail requires explicitly allowing access to less secure apps. Visit " { $url "https://www.google.com/settings/security/lesssecureapps" } " to turn it on. More info: " { $url "https://support.google.com/accounts/answer/6010255?hl=en" } "." } + { "If the account does use 2-step verification, Gmail requires the use of application-specific passwords. Visit " { $url "https://security.google.com/settings/security/apppasswords" } " to create a password for use with Factor. More info: " { $url "https://support.google.com/accounts/answer/185833?hl=en" } "." } + } +} +{ $examples { $code "USING: smtp namespaces io.sockets ;" "" @@ -94,6 +101,7 @@ ARTICLE: "smtp-gmail" "Setting up SMTP with gmail" t >>tls? \"my.gmail.address@gmail.com\" \"qwertyuiasdfghjk\" >>auth \\ smtp-config set-global" +} } ;