Skip to content

Emoji breaks the subject in the Mail #56115

@mohamedal36

Description

@mohamedal36

Laravel Version

9.52.4

PHP Version

8.0.2

Database Driver & Version

No response

Description

Hi Community,
I just had a script that handles sending emails created by users and one of the users created a subject with an emoji that contained a variation selector as shown below

Image
and at sending emails the emails' subject is like that

Image

when I remove the variation selector it works normally

here's the sample text that's causing the issue
"Reminder: 🚴‍♀️Bike to Work Day Fun! - 5X the Bike Points"
Thanks

Steps To Reproduce

Mail::html($content, function ($message) use ($employeeData, $email) {
$message->subject("Reminder: 🚴‍♀️Bike to Work Day Fun! - 5X the Bike Points")->to($employeeData->email);
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions