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 email SendHtml #30

Merged
merged 1 commit into from
May 27, 2021

Conversation

ryota-sakamoto
Copy link
Member

Signed-off-by: Ryota Sakamoto sakamo.ryota+github@gmail.com

@codecov-commenter
Copy link

codecov-commenter commented May 26, 2021

Codecov Report

Merging #30 (25a79a9) into master (e8e2938) will decrease coverage by 0.12%.
The diff coverage is 0.00%.

❗ Current head 25a79a9 differs from pull request most recent head 4a91a7e. Consider uploading reports for the commit 4a91a7e to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
- Coverage   46.84%   46.71%   -0.13%     
==========================================
  Files          26       26              
  Lines        1456     1460       +4     
==========================================
  Hits          682      682              
- Misses        626      630       +4     
  Partials      148      148              
Impacted Files Coverage Δ
pkg/services/email.go 31.57% <0.00%> (-3.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8e2938...4a91a7e. Read the comment docs.

@@ -56,6 +56,7 @@ type EmailOptions struct {
Username string `json:"username"`
Password string `json:"password"`
From string `json:"from"`
SendHtml bool `json:"sendHtml"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change it to just html please? I think send is redundant.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for reviewing.
I was thinking whether to use html or sendHtml, indeed it is redundant so I have changed to html.

Signed-off-by: Ryota Sakamoto <sakamo.ryota+github@gmail.com>
@ryota-sakamoto ryota-sakamoto linked an issue May 27, 2021 that may be closed by this pull request
Copy link
Contributor

@alexmt alexmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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.

Support send mail using text/html
3 participants