[linux][cygwin]cygwin でemail を送信する設定の簡易版

セキュリティーは甘いが簡単な方法 (1)email コマンドを使う  email コマンドは送信だけの簡易コマンド

(2)設定は email-config で簡単に設定できる。 cygwin からメールを送る https://rcmdnk.com/blog/2013/11/15/computer-windows-cygwin/

https://rcmdnk.com/blog/2013/11/15/computer-windows-cygwin/

$ email-config Please enter your From: name (e.g., John Doe) : rcmdnk Please enter your From: email address : rcmdnk@gmail.com Please enter your Reply-to: email address : Enter 1 to use sendmail or 2 to use a SMTP server [1]: 2 Please enter the address of your SMTP server [127.0.0.1]: smtp.gmail.com Please enter the SMTP port number [25]: 587 Please select SMTP authentication (1 for none, 2 for LOGIN, 3 for PLAIN) [1]: 2 Please enter your SMTP username : rcmdnk@gmail.com Please enter your SMTP password :

Use TLS (true or false)? : true

(3)gmail の設定を行う (3-1) 2段階認証をoff (3-2) 安全性の低いアプリへのアクセスの管理をユーザーに許可する https://www.hc.itc.keio.ac.jp/ja/gmail_user_manual_mailer_security.html