Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support smtp without auth #1101

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

LeoQuote
Copy link
Contributor

@LeoQuote LeoQuote commented Mar 7, 2024

某些 smtp 服务器不需认证(如内部的 postfix ), 在传递了 auth 信息后, 会报错显示 smtp: server doesn't support AUTH

本 pr 会解决这个问题

我已确认该 PR 已自测通过,相关截图如下:

图片

@LeoQuote
Copy link
Contributor Author

@songquanpeng 大佬看看这个

@songquanpeng
Copy link
Owner

不好意思哈这周没来及看

@LeoQuote
Copy link
Contributor Author

@songquanpeng 大佬有空看看

@songquanpeng songquanpeng changed the title support smtp without auth feat: support smtp without auth Jul 3, 2024
@LeoQuote
Copy link
Contributor Author

LeoQuote commented Jul 3, 2024

我重新整理下吧,是不需要这个air主题的修改吧

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 1.09%. Comparing base (c4fe57c) to head (54baef0).

Files Patch % Lines
common/message/email.go 0.00% 15 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1101      +/-   ##
========================================
- Coverage   1.09%   1.09%   -0.01%     
========================================
  Files        130     130              
  Lines       9690    9698       +8     
========================================
  Hits         106     106              
- Misses      9570    9578       +8     
  Partials      14      14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@songquanpeng
Copy link
Owner

可以分开吗

@LeoQuote
Copy link
Contributor Author

LeoQuote commented Jul 3, 2024

分开了, 这个逻辑不太好加测试, 要测试只能集成测试, 要集成到 CI 里还挺麻烦的

@songquanpeng songquanpeng merged commit ec6ad24 into songquanpeng:main Jul 3, 2024
3 of 4 checks passed
@songquanpeng
Copy link
Owner

thx~

@LeoQuote LeoQuote deleted the support-smtp-no-auth branch July 3, 2024 14:25
@LeoQuote LeoQuote restored the support-smtp-no-auth branch July 3, 2024 14:25
@LeoQuote LeoQuote deleted the support-smtp-no-auth branch July 3, 2024 14:25
jinjianming pushed a commit to jinjianming/one-api that referenced this pull request Jul 17, 2024
mxdlzg pushed a commit to mxdlzg/one-api that referenced this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants