Giter VIP home page Giter VIP logo

cloudflaremailsongmail's Introduction

Cloudflare/Mailchannels Gmail Integration

Make possible to use cloudflare workers to send emails from gmail interface, adds a button to the gmail compose interface

Deployment

To deploy this project, create a project in cloudlare workers, using wrangler or uploading the code itself on the site, add the three environment variables described in the .env.exemple on the worker. After this, the server side part of the project is already working, you can test it by using any client with this curl, just replacing the endpoint of the api, the password, and the other details about the email.

  curl --request POST \
  --url https://yourworker.api.com/ \
  --header 'Authorization: YourAuthPassword' \
  --header 'Content-Type: text/html;charset=UTF-8' \
  --header 'data: {"email":[{"email":"[email protected]", "name": "Fptbb"}],"subject":"Test Email"}' \
  --data OK

On the cloudflare too, if you haven't done it yet, you need to add a TXT record to your domain that your using it, to make sure SPF check will pass, as described here, so just add it, and came back here if you didn't.

After that, the only thing that need to be done, is add the client script on your preferred extension and edit the variables at the first lines. And is all done here ๐ŸŽ‰

Environment Variables

To run this project, you will need to add the following environment variables to your worker

MAIL = [email protected] AUTH = A Strong Password For Auth NAME = Your Name/Service Name

Run Locally

Just don't, the system requires that you run it on cloudflare servers, otherwise you be rejected.

Usage/Examples

You will see a button on the compose page of the gmail, on the dropdown of the send button, named "Webhook Send", click and your email will be sent.

Support

For support, try to fix it yourself, sorry, almost no support, you are on your own now, be careful.

Authors

  • @fptbb - Main, Serverside, Clientside, Ideia
  • @yHasteeD - Clientside, Parts that the Main is Lazy

License

MIT

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.