{"id":19517310,"url":"https://github.com/beeceej/courier","last_synced_at":"2026-05-03T20:36:18.058Z","repository":{"id":57521362,"uuid":"117370379","full_name":"beeceej/courier","owner":"beeceej","description":"gRPC interface for sending emails","archived":false,"fork":false,"pushed_at":"2018-04-24T15:07:20.000Z","size":9332,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-15T16:03:30.962Z","etag":null,"topics":["docker","go","grpc","smtp"],"latest_commit_sha":null,"homepage":null,"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/beeceej.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}},"created_at":"2018-01-13T19:04:49.000Z","updated_at":"2022-04-22T20:03:38.000Z","dependencies_parsed_at":"2022-09-26T18:01:12.014Z","dependency_job_id":null,"html_url":"https://github.com/beeceej/courier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beeceej/courier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeceej%2Fcourier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeceej%2Fcourier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeceej%2Fcourier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeceej%2Fcourier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beeceej","download_url":"https://codeload.github.com/beeceej/courier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeceej%2Fcourier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275055413,"owners_count":25397659,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","go","grpc","smtp"],"created_at":"2024-11-11T00:01:44.348Z","updated_at":"2026-05-03T20:36:18.027Z","avatar_url":"https://github.com/beeceej.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Courier\n\n## Configuration options\n\n`COURIER_PORT`\n\u003e COURIER PORT tells courier which port to run on\n\n`SMTP_HOST`\n\u003e SMTP Host is the domain name associated with your SMTP server\n\u003e for gmail, it is smtp.gmail.com\n\n`SMTP_PASSWORD`\n\u003e This is your authentication method to the SMTP server, for gmail, it is your google password\n\n`SMTPUser`\n\u003e This is your authentication method to the SMTP server, for gmail, it is your google username/emailaddress\n\nAll configuration options above are provided in the docker-compose.yml and may be overidden at your discretion\n\n\n## Getting Started\n\n1. build the docker image\n    * `docker build -t courier .`\n2. overide the environment variables in the docker-compose file,\n3. `docker-compose up`\n    * Courier is now running on your system!\n    * you now need a method to communicate to the courier server, you may use the example client located in `cmd/client/main/go` or you may write your own\n\n## Creating your own client\n\n1. Courier exposes a gRPC interface, so you are able to use the generated code in the pb package.\n2. Create a connection to the Courier instance\n    ```go\n    // Set up a connection to the server.\n\t  conn, err := grpc.Dial(address, grpc.WithInsecure())\n\t  if err != nil {\n\t\t  log.Fatalf(\"did not connect: %v\", err)\n\t  }\n\t  defer conn.Close()\n\t  c := pb.NewMailClient(conn)\n    ```\n3. Send a message to whoever you wish by, sending a message like:\n  ```go\n    // Contact the server and print out its response.\n\t  r, err := c.Send(context.Background(), \u0026pb.SendBody{\n\t\t  Recipients: []string{\"email@email.com\"},\n\t\t  Sender:     \"email@email.com\",\n\t\t  Subject:    \"Hello, to my friends\",\n\t\t  BodyText:   \"Just saying hi\",\n\t\t  BodyType:   \"text/html\",\n\t  })\n  ```\n4. That's all it takes","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeceej%2Fcourier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeeceej%2Fcourier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeceej%2Fcourier/lists"}