{"id":25633067,"url":"https://github.com/zkemail/relayer-smtp","last_synced_at":"2026-02-06T14:32:23.290Z","repository":{"id":243533184,"uuid":"812346051","full_name":"zkemail/relayer-smtp","owner":"zkemail","description":"Rust SMTP micro-utility for zk email relayers.","archived":false,"fork":false,"pushed_at":"2025-01-15T17:33:02.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T20:48:04.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/zkemail.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-08T16:17:25.000Z","updated_at":"2025-01-15T17:33:04.000Z","dependencies_parsed_at":"2024-11-25T17:26:17.455Z","dependency_job_id":"4b9f432c-fa6e-4730-a18f-3ddf4f968744","html_url":"https://github.com/zkemail/relayer-smtp","commit_stats":null,"previous_names":["zkemail/relayer-smtp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zkemail/relayer-smtp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-smtp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-smtp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-smtp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-smtp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkemail","download_url":"https://codeload.github.com/zkemail/relayer-smtp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkemail%2Frelayer-smtp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29164862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"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":[],"created_at":"2025-02-22T21:27:53.299Z","updated_at":"2026-02-06T14:32:23.268Z","avatar_url":"https://github.com/zkemail.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Relayer SMTP\n\nRelayer SMTP is a simple email relay server built with Rust, Actix Web, and Tokio. It provides an HTTP API for sending emails through a configured SMTP server.\n\n## Features\n\n- HTTP API for sending emails\n- Configurable SMTP and server settings via environment variables\n- Asynchronous email sending using Tokio\n- Simple health check endpoint\n\n## Project Structure\n\n- `src/main.rs`: Entry point of the application\n- `src/config.rs`: Configuration structures and loading\n- `src/server.rs`: HTTP server implementation\n- `src/smtp_client.rs`: SMTP client implementation\n- `src/lib.rs`: Library functions and module declarations\n- `src/strings.rs`: Constant strings used in the project\n\n## Setup\n\n1. Clone the repository\n2. Copy `.env.example` to `.env` and fill in the required environment variables:\n\n```\nSMTP_DOMAIN_NAME=your_smtp_domain\nSMTP_LOGIN_ID=your_smtp_login\nSMTP_LOGIN_PASSWORD=your_smtp_password\nMESSAGE_ID_DOMAIN=your_message_id_domain\nSERVER_HOST=localhost\nSERVER_PORT=8080\n```\n\n3. Run `cargo build` to compile the project\n\n## Usage\n\n1. Start the server:\n\n```\ncargo run\n```\n\n2. The server will start on the configured host and port (default: `localhost:8080`)\n\n## API Endpoints\n\n### GET /api/ping\n\nHealth check endpoint.\n\n**Response:**\n\n```\nHello, world!\n```\n\n### POST /api/sendEmail\n\nSend an email using the SMTP relay service.\n\n**Sample Body:**\n\n```bash\ncurl -X POST http://localhost:3000/api/sendEmail \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"to\": \"recipient@example.com\",\n    \"subject\": \"Test Email\",\n    \"body_plain\": \"This is a test email.\",\n    \"body_html\": \"\u003chtml\u003e\u003cbody\u003e\u003cp\u003eThis is a test email.\u003c/p\u003e\u003c/body\u003e\u003c/html\u003e\",\n    \"reference\": null,\n    \"reply_to\": null,\n    \"body_attachments\": null\n  }'\n\n```\n\n**Success Response:**\n\n```json\n{\n  \"message_id\": \"\u003cc4a4bb20-2948-4bfa-9108-62531f9d370f@mail.gmail.com\u003e\",\n  \"status\": \"success\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkemail%2Frelayer-smtp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkemail%2Frelayer-smtp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkemail%2Frelayer-smtp/lists"}