Support

Pre-sales

#27001 Admin Tools: You must provide at least one recipient email address.

Posted in ‘Pre-sales and Account Questions’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by on Wednesday, 01 March 2017 17:17 CST

joomlaboy
 Hello,

the issue is this one:

http://joomla.stackexchange.com/questions/18966/you-must-provide-at-least-one-recipient-email-address

Admin Tools seems to keep trying to send an email even if there is no recipient for the security exceptions.
Maybe it would be better if there is option to select which recipient to send these notifications.

nicholas
Akeeba Staff
Manager
Oh, Joomla... The code which tries to send the email is inside a try/catch block. JMail is supposed to throw an exception if the recipient list is invalid which is caught and suppressed. But no. JMail will suppress it and do something different instead.

As to why there is no check for an empty list: because it would not be correct. You enter the list of email addresses as a comma separated list. The following is a non-empty list:
,,,,,,,

It only has empty (hence invalid) addresses. Also, the following is a non-empty list too:
[email protected],,[email protected]

It has an empty (invalid) address in the middle. The same goes for
[email protected],i am * obviously invalid@---not-even-a_valid_domain.com

The thing is that Admin Tools should not be doing email address verification. It's the job of the mail library to do that. The mail library should then return an error which can be caught and suppressed programmatically. This is exactly what PHPmailer does, either by returning FALSE (old versions) or throwing an exception (newer versions, feature activated since Joomla 3.5).

The problem is that JMail is a wrapper to PHPmailer which does some stupid things, like suppressing the exceptions thrown by phpMailer's intrinsic methods and returning a boolean. This is quite the opposite of what it does for Send(). So, this problem is triggered by inconsistent error handling in Joomla.

For now I recommend adding an email recipient for security exceptions email OR disabling the configuration monitoring for Global Configuration and extensions in Admin Tools. I strongly recommend the former.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!