V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
imNull
0.05D

写了一个可以通过 http 发送邮件的转换工具

  •  
  •   imNull · Dec 2, 2022 via iPhone · 2084 views
    This topic created in 1242 days ago, the information mentioned may be changed or developed.

    有什么用

    • 如果项目里不方便增加原生 smtp 相关依赖可以尝试使用

    原理

    其实很简单:起一个脚本,提供 http 服务,脚本通过 request body 解析需要的参数,传递给 smtp client ,然后发出邮件。

    开源

    https://github.com/xu42/smtp-http

    yin1999
        1
    yin1999  
       Dec 2, 2022
    可以加一个 STARTTLS 端口的支持,这样也是可以用标准库进行 PlainAuth 认证的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1459 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 17:08 · PVG 01:08 · LAX 10:08 · JFK 13:08
    ♥ Do have faith in what you're doing.