{"id":24383462,"url":"https://github.com/firstandthird/micro-mail","last_synced_at":"2026-02-28T00:09:05.586Z","repository":{"id":8958191,"uuid":"57310119","full_name":"firstandthird/micro-mail","owner":"firstandthird","description":"Micro email api","archived":false,"fork":false,"pushed_at":"2022-12-30T17:13:47.000Z","size":1111,"stargazers_count":3,"open_issues_count":21,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T01:12:18.395Z","etag":null,"topics":["app"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firstandthird.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":"2016-04-28T14:55:27.000Z","updated_at":"2019-06-28T06:14:45.000Z","dependencies_parsed_at":"2023-01-13T15:05:28.611Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/micro-mail","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmicro-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmicro-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmicro-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fmicro-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/micro-mail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322571,"owners_count":21084337,"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":["app"],"created_at":"2025-01-19T10:14:33.088Z","updated_at":"2026-02-28T00:09:05.541Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Micro Mail\n\nAn app for sending emails.\n\n### Setup\n\nClone this repo and `npm install`. In order to work, the rendering engine must be able to find all of your templates. Currently all template files are defaulted to exist in `./templates`. Any additional helpers can be installed in `./helpers`. See below.\n\n```\n./micro-mail\n+ -- templates\n|    + -- emails\n|    |    + -- template-folder\n|    |    |    + -- index.html\n|    |    |    + -- details.yaml\n|    |    |    + -- test.json\n|    + -- partials\n|    |    + -- header.html\n|    |    + -- footer.html (Example files)\n+ -- helpers\n|    + -- inline.js\n|    + -- example.js\n```\n\nAdditionaly, you can configure where you want the files to reside in `conf/default.yaml` or in an environment specific file similar to `conf/dev.yaml` or `conf/stage.yaml`.\n\n### API\n\n`POST /send`\n\nPayload:\n\n```\n{\n  to: [*String],\n  from: [String],\n  fromName: [String],\n  subject: [String],\n  template: [*String],\n  data: [Object],\n  text: [*String],\n  headers: [Object]\n}\n```\n\nAttribute | Req. | Description\n--- | --- | ---\n**to** | *yes* | The email address of the recipient.\n**from** | *no* | The email address of the sender. Overrides configured sender.\n**fromName** | *no* | The common name of the sender. Override the configured name.\n**subject** | *no* | The subject line of the email. Overrides the subject in the template configuration.\n**template** | *yes* | The slug of the template you wish to render and send. Required if `text` is empty.\n**data** | *no* | Data object that is passed to the template rendering engine. Not specifically required unless your email template requires it to render properly.\n**text** | *yes* | Content to be sent as a text based email. If set, a text based email will be send regardless of the value of `template`.\n**headers** | *no* | Additional headers that are sent to the email delivery agent.\n\n\nResponse\n\n```\n{\n  status: [String (ok|error)],\n  message: [String],\n  result: [String|Object]\n}\n```\n\nAttribute | Description\n--- | --- | ---\n`status` | An enumeration of the request status. `ok` for a successful transaction, and `error` if there was an error. The HTTP status code will also reflect this status (`200` for `ok`, `4**`, `5**` for error)\n`message` | A Pretty message from the system.\n`result` | A proxy result from the mailing system. I.E. response from the Mandrill API.\n\n-----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fmicro-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fmicro-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fmicro-mail/lists"}