{"id":37215066,"url":"https://github.com/savsgio/microservice-email","last_synced_at":"2026-01-15T00:53:03.725Z","repository":{"id":54980131,"uuid":"116833114","full_name":"savsgio/microservice-email","owner":"savsgio","description":"Microservice for send emails","archived":true,"fork":false,"pushed_at":"2021-01-18T08:40:38.000Z","size":73,"stargazers_count":27,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T16:33:32.635Z","etag":null,"topics":["docker","emails","go","microservice","rabbitmq"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/savsgio.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-09T15:22:18.000Z","updated_at":"2023-03-17T16:11:36.000Z","dependencies_parsed_at":"2022-08-14T08:01:03.183Z","dependency_job_id":null,"html_url":"https://github.com/savsgio/microservice-email","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/savsgio/microservice-email","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savsgio%2Fmicroservice-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savsgio%2Fmicroservice-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savsgio%2Fmicroservice-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savsgio%2Fmicroservice-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savsgio","download_url":"https://codeload.github.com/savsgio/microservice-email/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savsgio%2Fmicroservice-email/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","emails","go","microservice","rabbitmq"],"created_at":"2026-01-15T00:53:03.047Z","updated_at":"2026-01-15T00:53:03.714Z","avatar_url":"https://github.com/savsgio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microservice-email\n\n[![Build Status](https://travis-ci.org/savsgio/microservice-email.svg?branch=master)](https://travis-ci.org/savsgio/microservice-email)\n[![Go Report Card](https://goreportcard.com/badge/github.com/savsgio/microservice-email)](https://goreportcard.com/report/github.com/savsgio/microservice-email)\n[![GitHub release](https://img.shields.io/github/release/savsgio/microservice-email.svg)](https://github.com/savsgio/microservice-email/releases)\n\nMicroservice to send emails\n\n### System requirements\n\n- [Go](https://golang.org/dl/) (\u003e= 1.12)\n- [RabbitMQ](https://www.rabbitmq.com/)\n- make\n\n## Installation\n\nDownload Go dependencies and build:\n\n```bash\nmake\n```\n\nInstall\n\n```bash\nmake install\n```\n\nAfter, you can exec with\n\n```bash\nmicroservice-email\n```\n\nOptional arguments:\n\n- `-log-level`: Level of log that you want to show (default: _info_)\n- `-config-file`: Path of configuration file (default: _/etc/microservice-email.yml_)\n- `-version`: Print version of service\n\n### API:\n\nThis API only accept **_POST_** http request with below parameters in body:\n\nExplanation (all are required):\n\n- `to`: List of emails of destiny\n- `subject`: Subject of email\n- `content_type`: Content type of email that it can be **_text/plain_** or **_text/html_**\n- `body`: Content of email\n\nExample of request to send a email:\n\n```json\n{\n  \"to\": [\"example_1@example.com\", \"example_2@example.com\"],\n  \"subject\": \"Hi, my friend\",\n  \"content_type\": \"text/html\",\n  \"body\": \"\u003ch1\u003eThis is the body of my Email in HTML format\u003c/h1\u003e\"\n}\n```\n\n## Docker\n\n### Dependencies\n\n- [Docker](https://www.docker.com/)\n- [Docker-compose](https://docs.docker.com/compose/) \\_Recommended to install with `pip3` (python3).\n\nBuild:\n\n```bash\nmake docker_build\n```\n\nRun:\n\n```bash\nmake docker_run\n```\n\n## For Devs\n\nCopy `config/microservice-email.conf` to `config/microservice-email.dev.conf.yml` _(this file not tracked in Git)_, modify each config and exec:\n\n```bash\nmake run\n```\n\n**_Note:_** If you want to use with Docker, make sure you have this rabbitmq configuration in `config/microservice-email.dev.conf.yml`:\n\n```yaml\n...\nrabbitmq:\n  host: rabbitmq\n  user: guest\n  password: guest\n  ...\n...\n```\n\n## Contributing\n\n**Feel free to contribute it or fork me...** :wink:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavsgio%2Fmicroservice-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavsgio%2Fmicroservice-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavsgio%2Fmicroservice-email/lists"}