I have a gmail account.
Is there a Google API that allows me to log into this account and send emails?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
In a sentence: Just send email programmatically like you would with any other mail provider - using the SMTP protocol (over SSL): Connect to smtp.gmail.com on port 465 or 587, and give the username and password. On a UN*X system, you could use something like
sendmail (or another MTA) +
mailx, the latter being a command-line utility. See, e.g., here about using it.
Yes, you can send email programmatically. You first need to generate appropriate application password, authenticate with the correct SMTP server and use SMTP client library to send email.
Follow this tutorial for more information (https://ps06756.wordpress.com/2017/08/17/how-to-send-email-through-gmail-programmatically/)