How to receive and parse email with Cloud Functions?

前端 未结 2 948
名媛妹妹
名媛妹妹 2021-01-02 22:34

Google Cloud Functions allows you to easily activate a function upon a trigger (eg Firebase data change, HTTP request...).

I am looking for a way to execute a functi

2条回答
  •  执念已碎
    2021-01-02 23:32

    One option if you use GSuite is to use the Gmail watch mechanism to listen to new emails in your inbox. The message can then be posted to a PubSub topic which can trigger a Cloud Function to parse the email and perform your necessary next steps.

    Here is a good use case that explains this mechanism
    https://cloud.google.com/blog/products/application-development/adding-custom-intelligence-to-gmail-with-serverless-on-gcp

提交回复
热议问题