前に作ったのは、以下のリンク先そのままのスクリプトで、以前は実行できたのに。
【JavaScript】GmailアカウントでSMTP送信するスクリプト
定型メールの送信を自動化する~GmailとJavaScriptの華麗な連携技(第13回)
で、利用したアカウントには、以下のようなメールが届いていました。
We recently blocked a sign-in attempt to your Google Account [xxxxx@gmail.com].
Sign in attempt details
Date & Time: Tuesday, March 10, 12:04 PM GMT+9
Location: Chuo, Tokyo, Japan
If this wasn't you
Please review your Account Activity page at https://security.google.com/settings/security/activity to see if anything looks suspicious. Whoever tried to sign in to your account knows your password; we recommend that you change it right away.
If this was you
You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards.
To learn more, see https://support.google.com/accounts/answer/6010255.
Sincerely,
The Google Accounts team
言われたように、リンク先に飛んで、Less Secure Apps(安全性の低いアプリ)をONにすると、無事メール送信が出来ました。どうやら、2012年以降にセキュリティが強化された模様。
調べてみると、以下の記事に遭遇。2014年7月からとのこと。
メーラーからGmailへの接続時に認証(パスワード)のエラーが生じる場合の対処方法
乗っ取られるのは嫌なのでOFFに再設定。
Windows7からWindows8.1にアップグレードしないといけない。
0 件のコメント:
コメントを投稿