{"id":15321666,"url":"https://github.com/binodkafle/gomail","last_synced_at":"2025-04-15T02:37:23.625Z","repository":{"id":53316137,"uuid":"288499704","full_name":"BinodKafle/gomail","owner":"BinodKafle","description":"Example go project to send email using GO via smtp, Gmail API and OAuth2. This is also a reference project for my article in medium titled \"Sending Emails with GO (Golang) Using SMTP, Gmail, and OAuth2\" ","archived":false,"fork":false,"pushed_at":"2021-08-03T15:03:49.000Z","size":34,"stargazers_count":21,"open_issues_count":2,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T14:22:22.804Z","etag":null,"topics":["email","gmailapi","golang","oauth2","smtp"],"latest_commit_sha":null,"homepage":"https://medium.com/wesionary-team/sending-emails-with-go-golang-using-smtp-gmail-and-oauth2-185ee12ab306","language":"Go","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/BinodKafle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-18T15:53:16.000Z","updated_at":"2025-01-02T20:09:44.000Z","dependencies_parsed_at":"2022-09-02T03:30:19.408Z","dependency_job_id":null,"html_url":"https://github.com/BinodKafle/gomail","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/BinodKafle%2Fgomail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinodKafle%2Fgomail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinodKafle%2Fgomail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinodKafle%2Fgomail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BinodKafle","download_url":"https://codeload.github.com/BinodKafle/gomail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248995107,"owners_count":21195497,"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":["email","gmailapi","golang","oauth2","smtp"],"created_at":"2024-10-01T09:12:10.682Z","updated_at":"2025-04-15T02:37:23.592Z","avatar_url":"https://github.com/BinodKafle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to use this project\nClone the repo\n\n### Download project dependencies\n```\ngo mod download\n```\n\n### Setting up environment\n- Copy `.env.example` file and paste it as `.env` in the same path\n- In `.env` file Add your email and password and leave other values as it is\n- Add your email address in `EMAIL_TO` in which you want to receive your test email\n- For using OAUTH2 to send email and filling up environment variables `CLIENT_ID`, `CLIENT_SECRET`, `ACCESS_TOKEN` and `REFRESH_TOKEN` follow my medium article [Sending Emails with GO (Golang) Using SMTP, Gmail, and OAuth2](https://medium.com/wesionary-team/sending-emails-with-go-golang-using-smtp-gmail-and-oauth2-185ee12ab306)\n\n### Sending email\n- For sending test email using SMTP, execute following command\n```\ngo run main.go SMTP\n``` \n\n- For sending test email using Gmail API and OAUTH2, execute following command\n```\ngo run main.go OAUTH\n```\n\nNOTE: Environment variables must be filled properly to be able to execute above commands","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinodkafle%2Fgomail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinodkafle%2Fgomail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinodkafle%2Fgomail/lists"}