Skip to content

Duplicate content in body #505

@Creanics

Description

@Creanics

Describe the bug
When i use $mail->getTextBody(), i have 4 times the content :
if in my mail i have just hello There\n i the function will return hello There\nhello There\nhello There\nhello There\n

To Reproduce
Steps to reproduce the behavior:

  1. Fetch your mails
  2. Create a variable with getTextBody like $body = $mail->getTextBody()
  3. Dump your variable
  4. See that your content is duplicated

Expected behavior
Content not duplicated when using the function

Screenshots
There is my mail (when i go to the webmail) :
Image

And this is the dump of $mail->getTextBody() :

Image

Desktop / Server (please complete the following information):

  • OS: Windows11
  • PHP: 8.1.10
  • Version 6.1.0

Additional context
When I was using v4.12 I didn't have this problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions