{"id":16903233,"url":"https://github.com/dpup/docs2email","last_synced_at":"2025-07-04T12:04:06.396Z","repository":{"id":57610988,"uuid":"119489499","full_name":"dpup/docs2email","owner":"dpup","description":"Send a Google Doc as an email (via sendgrid)","archived":false,"fork":false,"pushed_at":"2019-04-02T02:09:07.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T14:22:17.648Z","etag":null,"topics":["cli","email","gdocs","google-docs","sendgrid"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-30T05:55:32.000Z","updated_at":"2023-02-13T19:50:24.000Z","dependencies_parsed_at":"2022-09-11T04:50:47.960Z","dependency_job_id":null,"html_url":"https://github.com/dpup/docs2email","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fdocs2email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fdocs2email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fdocs2email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpup%2Fdocs2email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpup","download_url":"https://codeload.github.com/dpup/docs2email/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244637098,"owners_count":20485446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","email","gdocs","google-docs","sendgrid"],"created_at":"2024-10-13T18:11:59.949Z","updated_at":"2025-03-20T15:16:28.746Z","avatar_url":"https://github.com/dpup.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docs2Email\n\n_Command line utility for sending Google Docs by Email_\n\n**Configuring Google APIs:**\n\n- Visit the [Google Developer Console](https://console.developers.google.com/start/api?id=drive) and create a new project\n- Create credentials -\u003e OAuth client ID\n- Select \"Other\"\n- Download the credentials and save as `client_id.json` in the root of this repo\n- Then, under \"Library\" search for \"Drive\" and enable the Drive API for this project\n\nOn first run of docs2email you'll be prompted throug hthe google oauth flow.\n\n**Usage:**\n\n```bash\ngo get -u github.com/dpup/docs2email\ncd github.com/dpup/docs2email\ngo run *.go \\\n  --sendgrid-api-key=$SEND_GRID_API_KEY \\\n  --from=\"Bill Lumbergh \u003cbill@initech.com\u003e\" \\\n  --test=\"Bill Lumbergh \u003cbillyboy1999@gmail.com\u003e\" \\\n  --to=\"Peter Gibbons \u003cpeter@initech.com\u003e, Milton Waddams \u003ctemp43@initech.com\u003e, Michael Bolton \u003cbolton@initech.com\u003e\" \\\n  --cc=\"Tom Smykowski \u003ctom@initech.com\u003e\" \\\n  --bcc=\"Bob Slydell \u003cbob@downsize.r.us\u003e\" \\\n  --subject=\"Quarterly TPS Report\" \\\n  --file-id=\"1inglnJi363gY9-1lgLYBCc1gi-iEbwpNfXndxOQNrOY\"\n```\n\n**What happens:**\n\n- You will be prompted to login via Google and authorize drive.\n- Copy/paste the access token when prompted, this will be cached locally.\n- Your doc is downloaded as a zip, parsed and cleaned up.\n- A test email is sent to the address specified in the `--test` flag.\n- Check the email looks good, then type \"yes\".\n- The email will be resent with the full TO, CC, and BCC lists specified in the flags.\n\n[Get a Sendgrid API Key](https://app.sendgrid.com/settings/api_keys).\n\n## Contributing\n\nQuestions, comments, bug reports, and pull requests are all welcome. Submit them\n[on the project issue tracker](https://github.com/dpup/docs2email/new).\n\n## License\n\nCopyright 2018 [Daniel Pupius](http://pupius.co.uk). Licensed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpup%2Fdocs2email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpup%2Fdocs2email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpup%2Fdocs2email/lists"}