Skip to content

[4.0]"This is already a Punycode string" when email domain name contains accented characters #36301

@conseilgouz

Description

@conseilgouz

Steps to reproduce the issue

In configuration, if email domain name contains accented characters, test mail doesn't send any mail, nore display any message (no success message, no error message).

Other use of phpmailer will throw "This is already a Punycode string" error.

Expected result

Test message sent and success message displayed.

Actual result

No error message, no email sent

System information (as much as possible)

Joomla 4.0.4,

Additional comments

When trying to send mail via phpmailer, libraries/vendor/algo26-matthias/idna-convert/src/Punycode/ToPunycode.php throw AlreadyPunycodeException, so email sending process stops.
As email is stored in database in 'punycode format', phpmailer will never send mail.

Replacing line 37 "throw new AlreadyPunycodeException('This is already a Punycode string', 100);" by "return false" should solve this issue.

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