{"id":17234440,"url":"https://github.com/Jiannan-dev/leetcode-daily-mailer","last_synced_at":"2025-10-14T01:30:40.412Z","repository":{"id":174340019,"uuid":"651844205","full_name":"Jiannan-dev/leetcode-daily-mailer","owner":"Jiannan-dev","description":"邮件自动接收leetcode的每日一题(Mail automatically receives the daily question of leetcode)","archived":false,"fork":false,"pushed_at":"2023-07-19T15:18:10.000Z","size":686,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T01:14:44.251Z","etag":null,"topics":["daily-questions","email-sender-tool","leetcode"],"latest_commit_sha":null,"homepage":"https://leetcode-daily-mailer.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jiannan-dev.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":"2023-06-10T09:12:36.000Z","updated_at":"2023-09-18T06:26:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca92f835-3272-44f4-aff2-98c93735d959","html_url":"https://github.com/Jiannan-dev/leetcode-daily-mailer","commit_stats":null,"previous_names":["ruleeeer/leetcode-daily-mailer","jiannan-dev/leetcode-daily-mailer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jiannan-dev/leetcode-daily-mailer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiannan-dev%2Fleetcode-daily-mailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiannan-dev%2Fleetcode-daily-mailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiannan-dev%2Fleetcode-daily-mailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiannan-dev%2Fleetcode-daily-mailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jiannan-dev","download_url":"https://codeload.github.com/Jiannan-dev/leetcode-daily-mailer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiannan-dev%2Fleetcode-daily-mailer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017492,"owners_count":26086083,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["daily-questions","email-sender-tool","leetcode"],"created_at":"2024-10-15T05:29:28.618Z","updated_at":"2025-10-14T01:30:40.405Z","avatar_url":"https://github.com/Jiannan-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"English | [简体中文](./README_ZH.md)\n# leetcode-daily-mailer\nA simple node program that automatically sends you the `leetcode` daily question every day, using [leetcode-daily-question](https://github.com/ruleeeer/leetcode-daily-question) to get the daily question, and [ nodemailer](https://www.npmjs.com/package/nodemailer) to send emails, the result is as follows\n![img.png](picture/2023-06-17_16.54.12.png)\n## Quick start\n1. The current service is deployed on `vercel` (no payment required)\n   You can deploy your own service directly by clicking on the button [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/ruleeeer/leetcode-daily-mailer\u0026env=FROM_EMAIL\u0026env=TO_EMAIL\u0026env=SMTP_EMAIL_HOST\u0026env=SMTP_PORT\u0026env=AUTH_USER\u0026env=AUTH_PASS\u0026project-name=leetcode-daily-mailer\u0026repository-name=leetcode-daily-mailer)\n2. Set the required environment variables\n   | env_name | desc | example | require | default |\n   | ----------------|--------------------------|---------------------------------------|---------|---------|\n   | EMAIL_LANGUAGE |Language of email content(`en` or `cn`)| en | false|cn|\n   | FROM_EMAIL | email to send daily questions | send@mail.com | true |\n   | TO_EMAIL | The email address to receive the daily question (multiple, separated by commas) | receiver1@mail.com,receiver2@mail.com | true |\n   | SMTP_EMAIL_HOST| SMTP domain name of the sender's mailbox | smtp.gmail.com | true |\n   | SMTP_PORT| SMTP port of the sender's mailbox | 465 | false | 465 |\n   | AUTH_USER| The account number of the sender's mailbox | send@mail.com | true |\n   | AUTH_PASS|Password of the sender's mailbox | password | true |\n3. in the `. /vercel.json` file to set the sending time, note that `vercel` uses the UTC time zone, the following indicates that it will be sent at 1:00 a.m. every day in the UTC time zone, corresponding to 9:00 a.m. in the UTC+8 time zone\n```json\n{\n   \"crons\": [\n      {\n         \"path\": \"/api/send\",\n         \"schedule\": \"0 1 * * *\"\n      }\n   ]\n}\n```\n4. After deployment, you can directly access the `/api/send` path to test whether the send is successful\n## How to debug\n1. clone project\n2. Set the environment variables locally, create an `.env' file in the project root directory, and set the necessary environment variables in the `.env' file\n3. Install `vercel cli` tool according to https://vercel.com/docs/cli\n4. Start the project with 'vercel dev\n5. Visit `https://localhost:3000/api/send`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJiannan-dev%2Fleetcode-daily-mailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJiannan-dev%2Fleetcode-daily-mailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJiannan-dev%2Fleetcode-daily-mailer/lists"}