]> gitweb.factorcode.org Git - factor.git/commitdiff
docs, smpt-gmail: fix for people not using 2FA + formatting
authorJon Harper <jon.harper87@gmail.com>
Wed, 2 Mar 2016 18:10:10 +0000 (19:10 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 2 Mar 2016 18:14:15 +0000 (10:14 -0800)
basis/smtp/smtp-docs.factor

index dfdb681ded28ec04c71c519ac579db5b3b2f8b50..4b72927d0f6bab0565f172f057ec3d14a88d32aa 100644 (file)
@@ -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 <plain-auth> } " tuple with our login. Next, we set the gmail server address with an " { $link <inet> } " 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\" <plain-auth> >>auth
     \\ smtp-config set-global"
+}
 } ;