{"id":48242760,"url":"https://github.com/botsarefuture/email-list-management","last_synced_at":"2026-04-04T20:20:17.773Z","repository":{"id":255688208,"uuid":"778697177","full_name":"botsarefuture/email-list-management","owner":"botsarefuture","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-06T07:48:04.000Z","size":31,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-06T08:31:47.756Z","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-03-28T08:15:27.000Z","updated_at":"2024-11-06T07:48:08.000Z","dependencies_parsed_at":"2024-11-06T08:25:26.850Z","dependency_job_id":"49747bf7-3527-4e66-b2dc-509bf83d34c7","html_url":"https://github.com/botsarefuture/email-list-management","commit_stats":null,"previous_names":["botsarefuture/email-list-management"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/botsarefuture/email-list-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail-list-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail-list-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail-list-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail-list-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botsarefuture","download_url":"https://codeload.github.com/botsarefuture/email-list-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsarefuture%2Femail-list-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31412482,"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:17.592Z","updated_at":"2026-04-04T20:20:17.693Z","avatar_url":"https://github.com/botsarefuture.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email List Management Application\n\n**⚠️ Warning: This README is a work in progress. Some sections may be incomplete or subject to change.**\n\nThis project is a Flask-based web application for managing email lists, sending customized emails, and administering mailing lists. It includes an admin interface for managing mailing lists and sending emails to subscribers.\n\n## Features\n\n- **Manage Email Lists**: Create, edit, and delete email lists.\n- **Subscriber Management**: Add subscribers to lists, confirm subscriptions, and manage subscribers.\n- **Email Sending**: Send custom emails in plain text or HTML format to subscribers.\n- **Admin Interface**: Access an admin dashboard to manage lists and send emails.\n- **Token-Based Email Confirmation**: Secure email confirmation process using token-based links.\n- **Session-Based Admin Authentication**: Secure access to admin features (coming soon).\n\n## Requirements\n\n- Python 3.7+\n- Flask\n- Flask-PyMongo\n- Flask-CORS\n- Flask-Mail\n- ItsDangerous (for token generation)\n- MongoDB\n\n## Setup\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/yourusername/email-list-management.git\ncd email-list-management\n```\n\n### 2. Install Dependencies\n\nCreate a virtual environment and install the required Python packages:\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n### 3. Configure the Application\n\nCreate a configuration file (`config.yaml` or `config.json`) in the root directory of the project. This file should contain the following settings:\n\n```yaml\n# config.yaml\nSECRET_KEY: 'your_secret_key'\nMONGO_URI: 'mongodb://localhost:27017/your_db_name'\nMAIL_SERVER: 'smtp.your_email_provider.com'\nMAIL_PORT: 587\nMAIL_USERNAME: 'your_email@example.com'\nMAIL_PASSWORD: 'your_email_password'\nMAIL_USE_TLS: True\nMAIL_USE_SSL: False\nMAIL_DEFAULT_SENDER: 'your_email@example.com'\n```\n\n### 4. Initialize the Database\n\nEnsure MongoDB is running on your machine, and the database specified in `MONGO_URI` exists.\n\n### 5. Run the Application\n\nStart the Flask development server:\n\n```bash\nexport FLASK_APP=app.py\nflask run\n```\n\nYou can now access the application at `http://127.0.0.1:5000/`.\n\n## Usage\n\n### Admin Interface\n\n1. **Manage Lists**: Access the list management interface by navigating to `http://127.0.0.1:5000/admin/lists`.\n2. **Create List**: Add a new list by filling out the form at `http://127.0.0.1:5000/admin/lists/create`.\n3. **Edit List**: Edit an existing list by navigating to the list's edit page.\n4. **Delete List**: Delete a list from the list management page.\n5. **Send Email**: Send custom emails to all confirmed subscribers of a list via `http://127.0.0.1:5000/admin/send-email`.\n\n### API Endpoints\n\n1. **Signup**: `POST /signup`\n   - Request body: `{ \"email\": \"user@example.com\", \"list_id\": \"list_id\" }`\n   - Registers a user for a mailing list and sends a confirmation email.\n\n2. **Confirm Subscription**: `GET /confirm/\u003ctoken\u003e`\n   - Confirms a user's subscription using the token sent via email.\n\n3. **Get Subscribers**: `GET /lists/\u003clist_id\u003e/subscribers`\n   - Retrieves all subscribers for a specific list.\n\n## File Structure\n\n```bash\nemail-list-management/\n│\n├── app.py                 # Main application file\n├── config.yaml            # Configuration file\n├── email_service.py       # Email sending logic\n├── routes.py              # API routes\n├── admin/\n│   ├── admin_routes.py    # Admin-related routes\n│   ├── templates/         # HTML templates for admin interface\n│   └── static/            # Static files (CSS, JS)\n└── templates/\n    └── emails/            # Email templates (optional)\n```\n\n## Contributing\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -m 'Add your feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n**⚠️ Note:** This README is under active development. Some features may be incomplete, and additional documentation is forthcoming. Please check back later for updates.\n\n### Notes:\n- Update the repository link (`git clone https://github.com/yourusername/email-list-management.git`) with your actual GitHub repository.\n- After adding authentication, update the README to reflect those changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsarefuture%2Femail-list-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotsarefuture%2Femail-list-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsarefuture%2Femail-list-management/lists"}