Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.3k
Email option to embed images as base64 instead of link#32061
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
6bfebf7 to17439b9Comparesommerf-lf commentedSep 18, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Please have a look at this and let me know if I did some structural things wrong, as I have zero experience with Go but came across the mentioned issues myself and tried to add the optional setting to fix them. |
cc35853 to37428d3Compare37428d3 tod76e949Comparelunny commentedSep 19, 2024
Could you have some tests? |
sommerf-lf commentedSep 19, 2024
I'll have a look. But I'm not quite sure as to what the focus of these test should be, as outgoing emails aren't tested anywhere. I could simply test my own additions whithout any actual email integration (the parsing of the html and replacement of the img tags and whether other image tags stay the same). Sounds fine? |
lunny commentedSep 19, 2024
Yes. Thank you. |
d76e949 to49c1522Compare49c1522 tod072c3eComparesommerf-lf commentedSep 20, 2024
I added test to this. however I can't integrate them into services/mailer/mail_test.go because I need the testing environment which would form an import cycle. Now I exported the MailCommentContext and my newly added functions. Let me know if there is a way around this, but I see this as nothing big as these functions are not context specific. I'll squash the commits after you reviewed it |
763b655 to6814a96Comparesommerf-lf commentedSep 21, 2024
Still fails because I didn't account for using minio. Will rework... |
cd3fea1 to1665cbaComparewxiaoguang commentedMar 2, 2025
Will do some refactoring first before continuing this. Thank you for your patience. |
# Conflicts:#services/mailer/mail.go
7cd0f0e tof3d6e2dComparef3d6e2d to599b78dComparewxiaoguang commentedMar 5, 2025
Made some changes:
|
7cdde20 intogo-gitea:mainUh oh!
There was an error while loading.Please reload this page.
* giteaofficial/main: [skip ci] Updated translations via Crowdin Refactor: move part of updating protected branch logic to service layer (go-gitea#33742) Update changelog for v1.23.5 (go-gitea#33797) Email option to embed images as base64 instead of link (go-gitea#32061) Update TypeScript types (go-gitea#33799) Disable vet=off again (go-gitea#33794)
Uh oh!
There was an error while loading.Please reload this page.
ref:#15081
ref:#14037
Documentation:https://gitea.com/gitea/docs/pulls/69
Example
Content:



Result in Email:
Result with source code:
(first image is external image, 2nd is now embedded)