Skip to content

Email Attachments in Magento 2.4.8 #39869

Open
@fmaniconereply

Description

@fmaniconereply

Preconditions and environment

  • Magento version 2.4.8

Could you explain the rationale behind having the EmailMessage class extend the Message class, rather than a class directly related to email sending, such as Mail? Additionally, since the Message class does not provide methods like attach to handle attachments, how does Magento handle email attachments in this architecture?

Steps to reproduce

Create a script for send email
use method "attach" to add attachment

Expected result

It is not possible to add an attachment.

Actual result

It is not possible to add an attachment.

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrameworkComponent: EmailIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Reported on 2.4.8Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions