?
avatar brianteeman
brianteeman
14 Dec 2017

Steps to reproduce the issue

Verify that phpmail will send emails on a your server with Joomla 3. You can use either the test button in global configuration or create a new user in the admin or the contact form on the front end

Once you have verified that it phpmail works on your server with joomla 3 - try the same with joomla 4 on the same server

Actual result

Issue ONE

Test button in global configuration returns the following error message

The most recent request was denied because it contained an invalid security token. Please refresh the page and try again.

Issue TWO

Creating a new user in the admin returns the following error message

Save failed with the following error: Could not instantiate mail function.

This last message reveals TWO issues

  1. the save was successful - it was only the sending of the mail that failed
    (in J3 there would be TWO messages - one a successs on the save and one a fail on the mail)

  2. the string "Could not instantiate mail function" comes directly from phpmailer

    'instantiate' => 'Could not instantiate mail function.',

BUT it should be being converted to a joomla string with this code here

$PHPMAILER_LANG['instantiate'] = JText::_('PHPMAILER_INSTANTIATE');

I suspect that fixing point 2 above will fix point 1 as well.

Issue Three

Sending a contact on the front end

As expected from the other tests it doesnt work and we get a 500 Could not instantiate mail function.

avatar brianteeman brianteeman - open - 14 Dec 2017
avatar joomla-cms-bot joomla-cms-bot - change - 14 Dec 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Dec 2017
avatar brianteeman brianteeman - change - 14 Dec 2017
The description was changed
avatar brianteeman brianteeman - edited - 14 Dec 2017
avatar mbabker
mbabker - comment - 14 Dec 2017

See #19072 for part of this. There's a PHPMailer bug fix (B/C break) from over a year ago that looks to have broken the code.

avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Dec 2017
Category com_plugins
avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Dec 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Dec 2017
Build staging 4.0-dev
avatar brianteeman brianteeman - change - 6 Jan 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-01-06 19:43:10
Closed_By brianteeman
avatar brianteeman brianteeman - close - 6 Jan 2018

Add a Comment

Login with GitHub to post a comment