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

PHP 8 email arrives as multipart content #3

Open
kinoushe opened this issue Jan 13, 2021 · 1 comment
Open

PHP 8 email arrives as multipart content #3

kinoushe opened this issue Jan 13, 2021 · 1 comment
Assignees

Comments

@kinoushe
Copy link

Just a heads-up regarding PHP 8 compatibility.

Just testing a website with Textpattern 4.8.4 and PHP 8 and found that when using ext_file_attach emails now arrive as multipart content instead of plaintext with attachment. Reverting to PHP 7.4 resolves this.

What I'm seeing in Apple Mail with PHP 8:

--f2b57013356e3f84c2c6b1d9b77f95d2
Content-Type: multipart/alternative; boundary=6e6eea184f91b7376190beed7e793286
--6e6eea184f91b7376190beed7e793286
Content-Type: text/plain; charset=utf-8

Name: Test Name

Email: [email protected]

Message: Test upload PHP 8
--6e6eea184f91b7376190beed7e793286--
--f2b57013356e3f84c2c6b1d9b77f95d2
Content-Type:image/png; name="test.png"
Content-Transfer-Encoding:base64
Content-Disposition:attachment; filename="test.png"
X-Attachment-Id:5106

...

--f2b57013356e3f84c2c6b1d9b77f95d2--
@Bloke
Copy link
Owner

Bloke commented Jan 13, 2021

Interesting. I'll see if I can set up a PHP 8 environment and test this.

Thanks for the report.

@Bloke Bloke self-assigned this Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants