8000 TransportBuilder file - Mime type and CC problem · Issue #10 · DominicWatts/ContactAttachment · GitHub
[go: up one dir, main page]

Skip to content

TransportBuilder file - Mime type and CC problem #10

Open

Description

@CUTTRHOAT69

The File Rewrite/Magento/Framework/Mail/Template/TransportBuilder.php that rewrite the Magento TransportBuilder has some issues.

Magento version: 2.4.5-p1

  1. The Mime type is not being sent to the email;
    As can be seen on the diff screenshot (Magento file on the left), the creation of the mime type got some changes and the part that creates the mime type is not being used
    image
$mimePart = $this->mimePartInterfaceFactory->create(['content' => $content]);
$parts = count($this->attachments) ? array_merge([$mimePart], $this->attachments) : [$mimePart];

The first line, is only creating the object with the content, it's missing the type information that was supposed to be $part['type']

  1. Emails are being sent without the CC emails on it;
    I'm not sure why, but an else statement has been removed from the function addAddressByType on the rewrite, that may be the reason to have this issue, as can be seen on the diff screenshot (Magento file on the left):
    image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0