Google SMTP Server and Sending Email with a Google Apps Service Account

I have an application that I spent too much time trying to send an email using the service account that I installed in my Google Apps account.

I was wondering if this overly complex method of using a service account should continue, or if I just had to use the Gmail SMTP server. The only function I need is to actually send an email.

Are there any pros and cons for easily using the Gmail SMTP server, as well as for setting up a service account and calling the Google API to send email? If that matters, it will be a kind of batch email in which it will be sent to several people at once.

+4
source share
2 answers

Please note the following:

, . , . , https://support.google.com/a/answer/81126 , , . smtp, , SPF DKIM, - , . Gmail API, , , , SPF, https://support.google.com/a/answer/178723?hl=en DKIM https://support.google.com/a/answer/174126?hl=en API GMAIL 1,000,000,000 , , . SMTP , SMTP RELAY https://support.google.com/a/answer/2956491, - , .

, , , , , SMTP . , !

+1

SMTP , , API sysadmin.

-, -. . REST , F/OSS, ​​ OAuth. REST API , . SMTP .

2 . " Google Apps" - -, API (REST) ​​ , . SMTP - - , (SOAP). SOAP vs REST, .

SMTP Google - SMTP- SMTP. - , , .. , SOAP.

" Google Apps" - -, - , API RESTful TCP/IP. , ( OAuth), REST , , , , , JSON .. SOA, Web Hook, RESTful API, ..

- , . DKIM, SPF .. .

0

Source: https://habr.com/ru/post/1659427/


All Articles