1. You need to install a package called “email” in cygwin
2. Before using “email”, you need to set it up so it knows whether to use “sendmail” (another unix built-in functionality to deliver emails) or using a separate smtp server .
Since “sendmail” is missing in cygwin , I go with option 2, config separate smtp for “email” to work.
=> launch cygwin, then type “email-config” . This will prompt you a series of questions to configure the mail server for “email” .
=> Please enter your From: name << enter any nice name you want your recipient to see when they receive your email
Please enter your From: email address << enter the email address you want your recipient to see when they receive your email
Please enter your Reply-to: email address << enter the real email address you want your recipient's reply to be delivered to
Enter 1 to use sendmail or 2 to use a SMTP server << enter 2
Please enter the address of your SMTP server << you can get this info from your email provider. I personally use gmail so it is : smtp.gmail.com
Please enter the SMTP port number << you can get this info from your email provider. If not sure, leave the default value (25) by just entering without keying in anything
Please select SMTP authentication << enter 2
Please enter your SMTP username << you can get this info from your email provider. If you use gmail, then enter your gmail username here.
Please enter your SMTP password << you can get this info from your email provider. If you use gmail, then enter your gmail password here. Be careful though, your password will be in PLAIN TEXT .
Use TLS << enter "true"
Once you key in all these details . You are done and ready to use "email" .
Sidenote : all your configurations are stored in /etc/email/email.conf in PLAIN TEXT, including your user name and password. So just a note of caution that anyone having access to this file can see your credentials.
What works for me personally is that I created a seperate dummy gmail account, and then during the step up, at step “Please enter your Reply-to: email address”, I enter my actual business email address that I want all correspondences to reach.