{"id":29251671,"url":"https://github.com/macrat/ayd-mailto-alert","last_synced_at":"2025-12-15T14:36:57.227Z","repository":{"id":104355245,"uuid":"358858099","full_name":"macrat/ayd-mailto-alert","owner":"macrat","description":"Email alert sender for Ayd alive monitoring tool","archived":false,"fork":false,"pushed_at":"2025-02-09T09:54:33.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-09T10:26:10.357Z","etag":null,"topics":["alerting","ayd","email"],"latest_commit_sha":null,"homepage":"","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/macrat.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":"2021-04-17T11:14:04.000Z","updated_at":"2025-02-09T09:54:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f0732e3-b9f4-4c19-afa8-69d048587829","html_url":"https://github.com/macrat/ayd-mailto-alert","commit_stats":null,"previous_names":["macrat/ayd-mail-alert"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/macrat/ayd-mailto-alert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-mailto-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-mailto-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-mailto-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-mailto-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macrat","download_url":"https://codeload.github.com/macrat/ayd-mailto-alert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-mailto-alert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263427317,"owners_count":23464845,"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":["alerting","ayd","email"],"created_at":"2025-07-04T01:08:10.389Z","updated_at":"2025-12-15T14:36:52.150Z","avatar_url":"https://github.com/macrat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"ayd-mailto-alert\n================\n\nSMTP email alert sender for [Ayd](https://github.com/macrat/ayd) alive monitoring tool.\n\n\n## Install\n\n1. Download binary from [release page](https://github.com/macrat/ayd-mailto-alert/releases).\n\n2. Save downloaded binary as `ayd-mailto-alert` to somewhere directory that registered to PATH.\n\n\n## Usage\n\n### Use mailrc\n\n``` shell\n$ cat ~/.mailrc\nset smtp=smtps://smtp.gmail.com\nset smtp-auth-user=\"your username\"\nset smtp-auth-password=\"your password\"\nset from=\"your name \u003cyour-email@example.com\u003e\"\n\n$ export AYD_URL=\"http://ayd-external-url.example.com\"\n\n$ ayd -a mailto:your-email@example.com ping:your-target.example.com\n```\n\n### Use environment variable\n\n``` shell\n$ export SMTP_SERVER=smtp.gmail.com:465\n$ export SMTP_USERNAME=$YOUR_USERNAME\n$ export SMTP_PASSWORD=$YOUR_PASSWORD\n$ export AYD_URL=\"http://ayd-external-url.example.com\"\n\n$ ayd -a mailto:your-email@example.com ping:your-target.example.com\n```\n\n\n## Options\n\nSet all options through environment variable.\n\n| Variable        | Default                     | Description                        |\n|-----------------|-----------------------------|------------------------------------|\n| `SMTP_SERVER`   |                             | SMTP server name and port.         |\n| `SMTP_USERNAME` |                             | User name for SMTP server.         |\n| `SMTP_PASSWORD` |                             | Password for SMTP server.          |\n| `AYD_URL`       |                             | Ayd server address. (optional)     |\n| `AYD_MAIL_FROM` | `Ayd Alert \u003cayd@localhost\u003e` | The From email address. (optional) |\n\n`AYD_MAIL_FROM` can also be set by `from` query in URL, for example, `mailto:your-email@example.com?from=your-server@example.com`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacrat%2Fayd-mailto-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacrat%2Fayd-mailto-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacrat%2Fayd-mailto-alert/lists"}