Skip to content

Message::formatEmail() #64

Description

@WinterSilence

Version: 3.3.0

Bug Description

formatEmail save name wrapped in quotes

if (!$name && preg_match('#^(.+) +<(.*)>\z#', $email, $matches)) {

Steps To Reproduce

$message->formatEmail('"Winter Silence" <info@site.com>'); add address ['name' => '"Winter Silence"', 'email' => 'info@site.com']

Possible Solution

fix regexp: '#^"?(.+)"?\s+<(.*)>\z#'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions