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

Message::formatEmail() #64

Closed
WinterSilence opened this issue Jun 3, 2019 · 1 comment
Closed

Message::formatEmail() #64

WinterSilence opened this issue Jun 3, 2019 · 1 comment

Comments

@WinterSilence
Copy link

@WinterSilence WinterSilence commented Jun 3, 2019

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#'

@WinterSilence

This comment has been minimized.

Copy link
Author

@WinterSilence WinterSilence commented Jun 3, 2019

@dg 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.