[PR #580] [MERGED] feat: |Worker| support send mail by SMTP #639

Closed
opened 2026-02-26 21:32:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580
Author: @dreamhunter2333
Created: 2/15/2025
Status: Merged
Merged: 2/15/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • b26a6e3 feat: |Worker| support send mail by SMTP

📊 Changes

7 files changed (+118 additions, -12 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 vitepress-docs/docs/zh/guide/common-issues.md (+4 -4)
📝 vitepress-docs/docs/zh/guide/config-send-mail.md (+54 -2)
📝 worker/package.json (+2 -1)
📝 worker/pnpm-lock.yaml (+8 -0)
📝 worker/src/mails_api/send_mail_api.ts (+45 -4)
📝 worker/src/types.d.ts (+4 -1)

📄 Description

User description

#334


PR Type

Enhancement, Documentation


Description

  • Added support for sending emails via SMTP.

  • Updated documentation for configuring SMTP and sending emails.

  • Enhanced error messages for email sending failures.

  • Updated dependencies to include worker-mailer.


Changes walkthrough 📝

Relevant files
Enhancement
send_mail_api.ts
Add SMTP email sending functionality                                         

worker/src/mails_api/send_mail_api.ts

  • Added function to send emails via SMTP.
  • Integrated SMTP configuration into the email sending workflow.
  • Enhanced error messages for email sending failures.
  • +45/-4   
    types.d.ts
    Add SMTP configuration type                                                           

    worker/src/types.d.ts

    • Added SMTP_CONFIG to the Bindings type.
    +4/-1     
    Documentation
    CHANGELOG.md
    Update changelog with SMTP feature                                             

    CHANGELOG.md

    • Documented new feature for sending emails via SMTP.
    +1/-0     
    common-issues.md
    Document SMTP email sending in common issues                         

    vitepress-docs/docs/zh/guide/common-issues.md

    • Updated documentation to include SMTP email sending.
    +4/-4     
    config-send-mail.md
    Add SMTP configuration guide                                                         

    vitepress-docs/docs/zh/guide/config-send-mail.md

  • Added detailed instructions for configuring SMTP.
  • Explained the priority of email sending methods.
  • +54/-2   
    Dependencies
    package.json
    Add worker-mailer dependency                                                         

    worker/package.json

    • Added worker-mailer dependency.
    +2/-1     
    pnpm-lock.yaml
    Update lock file with worker-mailer                                           

    worker/pnpm-lock.yaml

    • Updated lock file to include worker-mailer.
    +8/-0     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 2/15/2025 **Status:** ✅ Merged **Merged:** 2/15/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`b26a6e3`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/b26a6e32cb551489df2f3a40968080d9bce76849) feat: |Worker| support send mail by SMTP ### 📊 Changes **7 files changed** (+118 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `vitepress-docs/docs/zh/guide/common-issues.md` (+4 -4) 📝 `vitepress-docs/docs/zh/guide/config-send-mail.md` (+54 -2) 📝 `worker/package.json` (+2 -1) 📝 `worker/pnpm-lock.yaml` (+8 -0) 📝 `worker/src/mails_api/send_mail_api.ts` (+45 -4) 📝 `worker/src/types.d.ts` (+4 -1) </details> ### 📄 Description ### **User description** #334 ___ ### **PR Type** Enhancement, Documentation ___ ### **Description** - Added support for sending emails via SMTP. - Updated documentation for configuring SMTP and sending emails. - Enhanced error messages for email sending failures. - Updated dependencies to include `worker-mailer`. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>send_mail_api.ts</strong><dd><code>Add SMTP email sending functionality</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/mails_api/send_mail_api.ts <li>Added function to send emails via SMTP.<br> <li> Integrated SMTP configuration into the email sending workflow.<br> <li> Enhanced error messages for email sending failures. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580/files#diff-92070e9d7b3228209a2024053eb4429a76907de17f9566b97b22d0d12e4e0934">+45/-4</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>types.d.ts</strong><dd><code>Add SMTP configuration type</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/types.d.ts - Added `SMTP_CONFIG` to the `Bindings` type. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580/files#diff-583fb024d5c9d1efac71bbea788d8379e5e8fc2f0bb1696a9863c6f6cac54bee">+4/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update changelog with SMTP feature</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md - Documented new feature for sending emails via SMTP. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>common-issues.md</strong><dd><code>Document SMTP email sending in common issues</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/docs/zh/guide/common-issues.md - Updated documentation to include SMTP email sending. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580/files#diff-e3078b1f013dc851524e9b2fcd5049364fb2d99f63b813724546178ffe702515">+4/-4</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>config-send-mail.md</strong><dd><code>Add SMTP configuration guide</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/docs/zh/guide/config-send-mail.md <li>Added detailed instructions for configuring SMTP.<br> <li> Explained the priority of email sending methods. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580/files#diff-109bcae3919db9baff5d9ce242dd61711dea99a28d9fd9af7660b3fa50c6efaa">+54/-2</a>&nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Dependencies</strong></td><td><table> <tr> <td> <details> <summary><strong>package.json</strong><dd><code>Add worker-mailer dependency</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/package.json - Added `worker-mailer` dependency. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580/files#diff-89dc6f41a53ce13f2da5a00dd34868762e6cd0df46eddc9f5c3c4510b1493870">+2/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>pnpm-lock.yaml</strong><dd><code>Update lock file with worker-mailer</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/pnpm-lock.yaml - Updated lock file to include `worker-mailer`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/580/files#diff-b40cf923090a5fb5f6cc0d6ce716c560645419d762871abb50383fdb423288c6">+8/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:09 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#639
    No description provided.