Page 1 of 1

How to disable mail on localhost?

PostPosted: 16. January 2019 18:37
by carsten888
I tried this in php.ini but it still send an email from localhost...
Code: Select all
disabled_functions = mail

Re: How to disable mail on localhost?

PostPosted: 16. January 2019 18:48
by Altrea
which application sends the mail?

Re: How to disable mail on localhost?

PostPosted: 16. January 2019 19:45
by carsten888
Its a Joomla website. It send an update notification. Quite harmless, but for security and to prevent embarrasing situations with websites which are not online just yet, I want to make sure xampp is not sending any emails at all.

Re: How to disable mail on localhost?

PostPosted: 16. January 2019 19:53
by Nobbie
Probably Joomla does not use the standard PHP Mail API, therefore "disabled_functions" does not have any effect on Joomla. Ask Joomla support how to disable mail.

carsten888 wrote:I want to make sure xampp is not sending any emails at all.


This cannot be done with a simple setting in php.ini, as there are thousand of ways how to send emails. You might configure a firefall to block all traffic on outgoing ports which are used for mails. Like port 25, 465 and 587.

Re: How to disable mail on localhost?

PostPosted: 16. January 2019 22:03
by Altrea
You need to configure Joomla to not send mails.
Joomla uses its own PHP mailer class which is not effected by disabling mail function.

Re: How to disable mail on localhost?

PostPosted: 17. January 2019 09:14
by carsten888
thx