{"id":18029397,"url":"https://github.com/morucci/simple-gmail-mail-sender","last_synced_at":"2025-04-04T21:12:42.918Z","repository":{"id":142717249,"uuid":"311670417","full_name":"morucci/simple-gmail-mail-sender","owner":"morucci","description":"Send email via the Gmail API","archived":false,"fork":false,"pushed_at":"2020-11-12T11:37:35.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T05:41:47.301Z","etag":null,"topics":["api","gmail","mail-sender","pool","python","simple","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morucci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-10T13:41:34.000Z","updated_at":"2020-11-26T20:03:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a8ebe83-7c00-43f4-bdd6-1f9b98e4a2ab","html_url":"https://github.com/morucci/simple-gmail-mail-sender","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morucci%2Fsimple-gmail-mail-sender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morucci%2Fsimple-gmail-mail-sender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morucci%2Fsimple-gmail-mail-sender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morucci%2Fsimple-gmail-mail-sender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morucci","download_url":"https://codeload.github.com/morucci/simple-gmail-mail-sender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249547,"owners_count":20908212,"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":["api","gmail","mail-sender","pool","python","simple","yaml"],"created_at":"2024-10-30T09:09:01.440Z","updated_at":"2025-04-04T21:12:42.899Z","avatar_url":"https://github.com/morucci.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SGMS (Simple GMAIL Mail Sender)\n===============================\n\nSimple tool to send email via a GMAIL account. It uses the GMAIL API.\n\nThe tool is expected to run from a host with a web browser to run the OAuth2 flow.\n\nSetup GMAIL side\n----------------\n\nAt https://developers.google.com/gmail/api/quickstart/python\n\n1. Enable the GMAIL API then:\n2. Enter project name: Perso-Mailer\n3. Configure your OAuth client: Desktop app\n4. Click on API Console link\n\nVia the console link or at https://console.cloud.google.com/apis/credentials\n\n1. Make sure to have selected: Perso-Mailer project\n2. Click on OAuth client\n3. Download JSON, and save the file to ~/.sgms/credentials.json.\n\nInstall sgms into your user account\n-----------------------------------\n\n```\npip install --user -r requirements.txt\npython setup.py install --user\n```\n\nRun the OAuth2 process to retreive the token\n--------------------------------------------\n\n```\nsgms --auth-only\n```\n\nCreate a message in YAML format\n-------------------------------\n\nCreate a file message.yaml with content such as\n\n```YAML\n---\nto: \u003cmon-gazier\u003e@mail.com\nsubject: Hey my Friend\nbody: I wish you a very good day !\n```\n\nOr see example/message.yaml as en example.\n\nSend an email\n-------------\n\nThe email to send must be provided as a YAML payload.\n\n```\nsgms --from-email user@gmail.com --yaml-message mail.yaml\n```\n\nSend emails for a directory\n---------------------------\n\nPrepare a directory with some messages as YAML files and run:\n\n```\nsgms --from-email user@gmail.com --yaml-directory pool/\n```\n\nMessage files that have been sent are renamed with the prefix *_sent_*\nand won't be proceed the next call of the command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorucci%2Fsimple-gmail-mail-sender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorucci%2Fsimple-gmail-mail-sender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorucci%2Fsimple-gmail-mail-sender/lists"}