Code Monkey home page Code Monkey logo

googlecloudgemaildispatcher's Introduction

Google Cloud GEmail Dispatcher

Sends emails using the Gmail API and Google Cloud Functions.

The Cloud Functions use HTTP trigger and unauthenticated invocations

  • To test the cloud functions:

    1. From the Google Cloud Functions dashboard, click on the OAuthInit function
    2. Go to TRIGGER tab and click on the Trigger URL
    3. After the 2nd step, you should be redirected to an accounts.google.com page, choose a Google Account
    4. If you are redirected to a "Google didn't verify the application" page, click on Advanced and then on Access [gcloud-function-region]-[gcloud-function-projectid].cloudfunctions.net
    5. Review the scopes the cloud function wants access to, then click on Continue if everything is in order
    6. You should be redirected to a page with the successful message: "Saved the access and refresh tokens in Google Cloud Datastore!"
    7. Go back to Google Cloud Functions dashboard, click on the EmailDispatcher function
    8. Go to TESTING tab and use a request like in the example, replacing [string] with your data (if you don't want to input any value into CC or BCC you must use an empty string value: ""):
    {
        "From":"[required - your gmail address]",
        "To":"[required - an email address]",
        "ReplyTo":"[required - an email address or the same address from To]",
        "CC":"[optional - an email address]",
        "BCC":"[optional -  an email address]",
        "Subject":"[required - email's subject]",
        "Content":"[required - email's content]"
    }
    
    1. Click TEST THE FUNCTION button

If you receive a 500 HTTP STATUS CODE due to an Environment Variable that is null, edit the Google Cloud Function and check if there's a space after any Environment Variable

googlecloudgemaildispatcher's People

Contributors

vladbulhac avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.