{"id":48242814,"url":"https://github.com/botsarefuture/email_delivery_service","last_synced_at":"2026-04-04T20:20:19.932Z","repository":{"id":255688447,"uuid":"787247810","full_name":"botsarefuture/email_delivery_service","owner":"botsarefuture","description":"Service for delivering emails","archived":false,"fork":false,"pushed_at":"2024-09-06T16:48:28.000Z","size":13,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-07T18:45:01.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/botsarefuture.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-04-16T07:01:29.000Z","updated_at":"2024-04-16T07:02:31.000Z","dependencies_parsed_at":"2024-09-06T18:43:04.998Z","dependency_job_id":"10726c17-cdba-4987-a2c7-d85697e0f759","html_url":"https://github.com/botsarefuture/email_delivery_service","commit_stats":null,"previous_names":["botsarefuture/email_delivery_service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/botsarefuture/email_delivery_service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail_delivery_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail_delivery_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail_delivery_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail_delivery_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botsarefuture","download_url":"https://codeload.github.com/botsarefuture/email_delivery_service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail_delivery_service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31412488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":"2026-04-04T20:20:19.845Z","updated_at":"2026-04-04T20:20:19.909Z","avatar_url":"https://github.com/botsarefuture.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Email Server\n\nThis Flask application provides an API endpoint for sending emails using multiple SMTP servers with rate limiting and session management.\n\nClient for this: [github.com/botsarefuture/email_delivery_client](https://github.com/botsarefuture/email_delivery_client)\n\n## Installation\n\n1. Clone this repository:\n\n    ```bash\n    git clone https://github.com/botsarefuture/email_delivery_service.git\n    ```\n\n2. Navigate to the directory:\n\n    ```bash\n    cd email_delivery_service\n    ```\n\n3. Install the required dependencies:\n\n    ```bash\n    pip install Flask\n    ```\n\n## Usage\n\n1. Run the Flask server:\n\n    ```bash\n    python app.py\n    ```\n\n2. Send a POST request to the `/send_email` endpoint with the required parameters:\n\n    - `email_from`: Sender's email address.\n    - `email_to`: Recipient's email address.\n    - `subject`: Email subject.\n    - `text` (optional): Plain text content of the email.\n    - `html` (optional): HTML content of the email.\n    - `email` (optional): Sender's email address (if not provided in session).\n    - `password` (optional): Sender's email password (if not provided in session).\n    - `smtp_index` (optional): Index of the SMTP server to use (if not using default configuration).\n\nExample usage with cURL:\n\n```bash\ncurl -X POST http://localhost:5000/send_email \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\n        \"email_from\": \"sender@example.com\",\n        \"email_to\": \"recipient@example.com\",\n        \"subject\": \"Test Email\",\n        \"text\": \"This is a test email.\",\n        \"email\": \"sender@example.com\",\n        \"password\": \"password\",\n        \"smtp_index\": 0\n    }'\n```\n\n## API Specification\n\n### `POST /send_email`\n\nSends an email with the provided parameters.\n\n#### Request Body\n\n- `email_from`: Sender's email address.\n- `email_to`: Recipient's email address.\n- `subject`: Email subject.\n- `text` (optional): Plain text content of the email.\n- `html` (optional): HTML content of the email.\n- `email` (optional): Sender's email address (if not provided in session).\n- `password` (optional): Sender's email password (if not provided in session).\n- `smtp_index` (optional): Index of the SMTP server to use (if not using default configuration).\n\n#### Response\n\n- Success (200 OK):\n\n    ```json\n    {\n        \"message\": \"Email sent successfully\"\n    }\n    ```\n\n- Error (4xx or 5xx):\n\n    ```json\n    {\n        \"error\": \"Error message\"\n    }\n    ```\n\n## Notes\n\n- The server uses rate limiting to send one email every 2 seconds from each server.\n- Multiple SMTP servers can be configured in the `smtp_servers` list.\n- Session management is used to store default email configurations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsarefuture%2Femail_delivery_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotsarefuture%2Femail_delivery_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsarefuture%2Femail_delivery_service/lists"}