Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect MIME boundary generation for Mailable with empty html body #35905

Closed
AntonioDiPassio-AppSys opened this issue Jan 15, 2021 · 2 comments
Labels

Comments

@AntonioDiPassio-AppSys
Copy link

AntonioDiPassio-AppSys commented Jan 15, 2021

  • Laravel Version: 8.22.1
  • PHP Version: 7.4.11
  • Database Driver & Version:

Description:

When sending a Mailable with an empty string as html body, the MIME boundary for the attachment is incorrectly generated.

Steps To Reproduce:

  • Create a test.txt file in storage, with some data
  • Create a mailable with the following code as build():
        return $this->html('')
            ->subject('test')
            ->attachFromStorage('test.txt');
@driesvints
Copy link
Member

@AntonioDiPassio-AppSys can you try to apply the same fix from 0557622 but then for the HTML part a bit above it? Does that fixes your issue?

@AntonioDiPassio-AppSys
Copy link
Author

@driesvints Yes, this fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants