5

I have a gmail account.

Is there a Google API that allows me to log into this account and send emails?

fixer1234
  • 28,064
Alex
  • 2,601

3 Answers3

5

Yes. And the easiest way to find the documentation of it is by googling "gmail api".

See here.

You can also use any generic SMTP client. See Sending mail from a printer, scanner or app

Barmar
  • 2,545
1

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.

einpoklum
  • 10,666
0

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/)