-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
[16.0][MIG] mail_embed_image module #1499
base: 16.0
Are you sure you want to change the base?
[16.0][MIG] mail_embed_image module #1499
Conversation
47b33e5
to
022e0d3
Compare
- CIDs are not working in some email managers (gmail and office365) To allow this behavior we need to change the content type to multipart/related - A new option to embed images is to include the base64 content inside the src. - Then to select these options, a selected field has been added to company
022e0d3
to
6dc1479
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests are fixed in #1519
): | ||
image_path = img.get("src") | ||
try: | ||
response = requests.get(image_path, timeout=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test case where we have an image with a relative url, I believe this will fail here
> | ||
<span class="o_form_label">Email Preprocessing</span> | ||
<div class="text-muted"> | ||
Method used to embed images in HTML emails. CIDs attachment does not work with all email clients. Data SRC is more reliable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that actually depends very much on the clients you target, with old outlooks it's the other way around. I'd propose not to make claim about what works better, and rather suggest to test with whatever are the expected mail clients
Superseed #1402