Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Provide the ability to send pre-encoded attachments #573

Copy link
Copy link

Description

@dmittriy13
Issue body actions

Issue

We store attachments encoded in base64 in the database; the current library API does not allow sending pre-encoded attachments. Instead, we have to decode them and then provide them to the library to re-encode just before sending them.

Steps to Reproduce

  1. Create an builder using EmailBuilder.startingBlank().
  2. Add an attachment that is already encoded, for example in base64
  3. Call EmailBuilder#build for create new email.
  4. Call Mailer#send for send email.

Expected Behavior

The attachment will not be re-encoded, but will be sent in the current encoding.

Actual Behavior

The attachment will be re-encoded

Request

It is necessary to be able to indicate that the attachment is already encoded and specify the encoding. The library should use jakarta.mail.internet.PreencodedMimeBodyPart as a container for such attachments.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.