Skip to content

[Mailer] Incorrect Base64 encoded content of the attachment in Mailersend #51492

Closed
@pavelwitassek

Description

@pavelwitassek

Symfony version(s) affected

6.3

Description

Currently is used method bodyToString of MIME attachment, which generates base64 string of body split into chunks by max-line-length for MIME. This is not correct behavior for Mailersend API which requires not-splitted base64 encoded string of body.

How to reproduce

Send email with attachment via Mailersend API integration. Error occurs if base64 encoded body string of attachment has more than 76 characters. Mailersend API response with: The value must be an Base64 encoded string.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions