How to send an email through gmail without enabling 'insecure access'?

后端 未结 6 689
你的背包
你的背包 2020-12-12 17:35

Google are pushing us to improve the security of script access to their gmail smtp servers. I have no problem with that. In fact I\'m happy to help.

But they\'re n

6条回答
  •  独厮守ぢ
    2020-12-12 18:10

    Have you considered using the Gmail API? The API has security features built in and is optimized specifically for Gmail. You can find the API documentation on http://developers.google.com - for example, here's the documentation for the Send API call:

    https://developers.google.com/gmail/api/v1/reference/users/messages/send

提交回复
热议问题