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

Add arbitrary header overrides for attachments #631

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jarrodmoldrich
Copy link

@jarrodmoldrich jarrodmoldrich commented Oct 22, 2021

This allows bamboo adapters to be accept overriding headers for special
use cases. Updates to those adapters would be required to use this
functionality.

For e.g., in the specific use-case of adding inlined attachments, some
special case headers are required. Now it's possible to add
X-Attachment-Id and override the Content-Disposition header with
inline to permit the proper display of inlined content, without an
email client showing them as explicit attachments for the user to
download.

Closes #502 #430

Related PRs:
kalys/bamboo_ses#43
DockYard/elixir-mail#137

This allows bamboo adapters to be accept overriding headers for special
use cases. Updates to those adapters would be required to use this
functionality.

For e.g., in the specific use-case of adding inlined attachments, some
special case headers are required. Now it's possible to add
`X-Attachment-Id` and override the Content-Disposition header with
`inline` to permit the proper display of inlined content, without an
email client showing them as explicit attachments for the user to
download.
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.

Add attachment content-disposition and content-id fields
1 participant