?
avatar bembelimen
bembelimen
16 Feb 2020

Steps to reproduce the issue

  1. Go to the global configuration
  2. Set an email like: "foobar@localhost"
  3. save
  4. press "send test email" button

Expected result

Either I get an error on saving, that the email is wrong or sending an email works.

Actual result

Sending an email fails, because Joomla! validation uses the Email ruleset (https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Form/Rule/EmailRule.php) while the PHPMailer class ( addRecipient) uses the PHP validation (https://github.com/joomla/joomla-cms/blob/staging/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php#L1157)

Additional comments

Here was a short discussion already

avatar bembelimen bembelimen - open - 16 Feb 2020
avatar joomla-cms-bot joomla-cms-bot - change - 16 Feb 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Feb 2020
avatar bembelimen bembelimen - change - 16 Feb 2020
The description was changed
avatar bembelimen bembelimen - edited - 16 Feb 2020
avatar SharkyKZ
SharkyKZ - comment - 16 Feb 2020

We could make TLD required in our forms. The validation rule already supports it.

avatar brianteeman
brianteeman - comment - 16 Feb 2020

That would be wrong

avatar dgrammatiko
dgrammatiko - comment - 17 Feb 2020

Just add type="email" instead type="text"in the input. Browsers know better how a valid email looks like ?

avatar jwaisner jwaisner - change - 17 Feb 2020
Status New Confirmed
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-04-05 09:41:16
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 5 Apr 2020
avatar alikon alikon - change - 5 Apr 2020
Closed_By joomla-cms-bot alikon
avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Apr 2020

Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/27948

avatar alikon
alikon - comment - 5 Apr 2020

please test #28574


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27948.

avatar brianteeman
brianteeman - comment - 5 Apr 2020

For reference the problem was with phpmailer configuration

Add a Comment

Login with GitHub to post a comment