{"id":19560399,"url":"https://github.com/ashad001/emailsender","last_synced_at":"2025-06-11T14:37:46.143Z","repository":{"id":212704182,"uuid":"732107777","full_name":"Ashad001/EmailSender","owner":"Ashad001","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-29T18:59:42.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T21:48:53.290Z","etag":null,"topics":["automation","email-sender","python","selenium"],"latest_commit_sha":null,"homepage":"","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/Ashad001.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,"zenodo":null}},"created_at":"2023-12-15T16:58:36.000Z","updated_at":"2024-05-10T16:18:05.000Z","dependencies_parsed_at":"2024-05-04T04:15:23.774Z","dependency_job_id":null,"html_url":"https://github.com/Ashad001/EmailSender","commit_stats":null,"previous_names":["ashad001/emailsender"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashad001%2FEmailSender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashad001%2FEmailSender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashad001%2FEmailSender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashad001%2FEmailSender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ashad001","download_url":"https://codeload.github.com/Ashad001/EmailSender/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashad001%2FEmailSender/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259280796,"owners_count":22833450,"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":["automation","email-sender","python","selenium"],"created_at":"2024-11-11T05:07:26.964Z","updated_at":"2025-06-11T14:37:46.120Z","avatar_url":"https://github.com/Ashad001.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Email Sending Script\n\n## Overview\n\nThis script is designed to send personalized emails (for cold emailing) to a list of recipients using Gmail's SMTP server. It reads recipient information from a CSV file, customizes email content based on templates, and sends emails using a rotating set of credentials. The script logs successful and unsuccessful email deliveries.\n\n## Project Structure\n\n```\n- EmailSender\n    - data\n        - email.csv (Hidden)\n    - logs (Hidden)\n        - error_log.csv (Hidden)\n        - sent_emails_log.txt (Hidden)\n        - log.txt (Hidden)\n        - current_plan.txt (Hidden)\n    - templates\n        - credentials.json (Hidden)\n        - templates.json (Hidden)\n        - email_sending_plan.json (made implicitly)\n    - email_sender.py\n    - plan_manager.py\n    - utils.py\n```\n\n## Configuration\n\nThe script is configured through two JSON files:\n\n1. **credentials.json**: Contains a list of email credentials with email and password (get your app password from [Google Account Security](https://myaccount.google.com/) and generate an app password; also, make sure you have 2-factor authentication enabled).\n\n2. **templates.json**: Contains a list of email templates with subject and body.\n\n3. **email_sending_plan.json**: Contains a list of email sending plans with the number of emails to send per day and creates a 25 day plan for email warmup.\n\n## Usage\n\n1. **Prepare CSV File**: Create a CSV file named `email.csv` with columns, including \"Email,\" \"Country,\" \"Tag,\" and \"Name\" for recipient information and put it in a `/data` folder.\n\n2. **Set Up Templates**: Customize email templates in the `templates.json` file in `/templates` folder.\n\n3. **Run the Script**: Execute the script by running the main block. Ensure that the necessary files and folders are in place. The script will send emails to recipients specified in the CSV file.\n\n   ```bash\n   python email_sender.py\n   ```\n\n## Important Notes\n\n- The script uses Gmail's SMTP server. Ensure that \"Less secure app access\" is enabled for the sender's Gmail account.\n\n- Update the path to your logo file in the script if you want to include a logo in your emails (`'logo.jpg'`).\n\n- Emails are sent in rotation through multiple credentials to avoid exceeding daily sending limits.\n\n- Logs of successful and unsuccessful email deliveries are stored in the `logs` directory.\n\n## Customization\n\n- Modify the `attachments` section to include attachments in your emails.\n- Replace placeholders like `[USERNAME]`, `[TAG]`, etc., in email templates with actual data from the CSV file.\n\n## Troubleshooting\n\n- If emails are not being sent, check the error logs (`error_log.csv`) for details on failed deliveries.\n\n- Review the console output for any error messages.\n\n- Ensure that all dependencies are installed and the necessary files are correctly configured.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashad001%2Femailsender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashad001%2Femailsender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashad001%2Femailsender/lists"}