You can send emails from Windows PowerShell using the Send-MailMessage cmdlet, EASendMail component, and System.Net.Mail API. Check out these options in detail.
To send emails from JavaScript, you can use such services like EmailJs.com or SmtpJS.com. In this blog post, you’ll figure out how to do this seamlessly.
Find out more about Gmail SMTP, settings, and relay: what it is, when you should switch to it, how to set it up to send emails, and what are the limitations.