Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Problems with mail in PHP +8.0 ?
  • Hello, I have just noticed an issue I am having with sending emails in FuelPHP.

    I use FuelPHP's standard email sending method, and everything was working fine, but in PHP versions higher than 8.0, I don't understand why the received email shows the text together. I've included some screenshots as examples.

    PHP 8.0+:


    PHP 7.4:



    The exact same code works fine when we change the version to PHP 7.4 (or lower). Of course I'm reading the email with the same desktop client.

    Any thoughts?

    I'm working with latest 1.9 branch

    Thanks!


  • Please don't use imgur, it blocks all access from the UK, so I can't see it.

    What type of mail server do you use? Also, do you have any test code I can use to reproduce the issue?

    We run all our apps on 1.9-dev and PHP8+ (and development on 8.5), and I've not seen or heard of any issues sofar.
  • I've uploaded to ImgBB:

    PHP 7.4:

    PHP 8.0+:

    I use exim4 mail server in both cases, but I'm using mail php method with sendmail for sending.




  • Can't see much on those images.

    Can you provide me the raw email contents of both emails? Most email clients have an option to "view source".

    If you can zip them and send them to wanwizard<at>fuelphp.com ?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion