How to disable mail on localhost?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to disable mail on localhost?

Postby carsten888 » 16. January 2019 18:37

I tried this in php.ini but it still send an email from localhost...
Code: Select all
disabled_functions = mail
carsten888
 
Posts: 18
Joined: 16. December 2018 09:05
XAMPP version: 7.3.0
Operating System: windows 10

Re: How to disable mail on localhost?

Postby Altrea » 16. January 2019 18:48

which application sends the mail?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How to disable mail on localhost?

Postby carsten888 » 16. January 2019 19:45

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.
carsten888
 
Posts: 18
Joined: 16. December 2018 09:05
XAMPP version: 7.3.0
Operating System: windows 10

Re: How to disable mail on localhost?

Postby Nobbie » 16. January 2019 19:53

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.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: How to disable mail on localhost?

Postby Altrea » 16. January 2019 22:03

You need to configure Joomla to not send mails.
Joomla uses its own PHP mailer class which is not effected by disabling mail function.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How to disable mail on localhost?

Postby carsten888 » 17. January 2019 09:14

thx
carsten888
 
Posts: 18
Joined: 16. December 2018 09:05
XAMPP version: 7.3.0
Operating System: windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 105 guests