Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @kalys 👋
In a related PR to
thoughtbot/bamboo
I've exposed a variable inBamboo.Attachment
called:headers
that can pass a number of arbitrary headers as a keyword list, permitting overrides of headers (e.g.,Content-Disposition
) or adding other special cases (e.g.,X-Content-Id
). The purpose is to give extra control to the library consumer, and the benefit for me, in particular, is to add inline image attachments that work well in a variety of email clients.As well as these extra headers, there's a need to reorganize and wrap the inline attachments in a
multipart/related
part. I'll be pushing another related PR for that to DockYard/elixir-mail shortly, but I also duplicated the changes to theRFC2822Renderer
module in this library. The update shouldn't regress any prior behavior, and I feel that the new code is appreciably more legible. From my testing, inline images now work properly in Outlook webmail with this change.I haven't added anything to test suite yet, but will proceed to work on this PR if I have your blessing. So please let me know!
Cheers,
Jarrod
Related PRs:
beam-community/bamboo#631
DockYard/elixir-mail#137