Go Back   Computer Forums > General Computing > Cyber Safety and Computer Security
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 05-05-2015, 05:31 AM   #1
Beta Member
Join Date: Feb 2013
Location: Australia
Posts: 2
Default PHPMailer and email spam

Hi Everyone.

I have a problem with my employer's website. Our account continues to be suspended only after a day or two. The reason being that our website seems to be sending spam email. First I thought the host was talking about our email accounts that it is hosting, but now I understand that our website, not our email server is sending emails. See this excerpt from an email from our webhost.

Please check the script of files below:


So now, at the moment, we don't have a form on our website, so we have no reason to have an email facility. I would like to disable this PHPMailer so we can at least see if this problem disappears after we disable it.

Does anyone have any advice on how I would disable it?


Bucephalus is offline   Reply With Quote
Old 05-05-2015, 07:21 AM   #2
Site Team
root's Avatar
Join Date: Mar 2004
Posts: 7,872
Default Re: PHPMailer and email spam

to disable it you can just remove those files that are sending out spam.

In this case it's the one with the mailer functions:

but a better way of doing it would be like this:

first create a file called env.php
inside this file put the following code
This should tell you where your php.ini file is.

Inside that file (search for the section where functions are setup)
and add the line

disabled_functions = mail
I'm guessing that you've just installed something (in this case Wordpress) out of the box in order to get a website up and running quickly. the trouble with doing that is often you will have functions enabled that you really don't need.

I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 05-05-2015, 07:38 AM   #3
Wizard of Wires
setishock's Avatar
Join Date: Feb 2005
Location: Not sure
Posts: 10,031
Default Re: PHPMailer and email spam

I really need to learn to type faster...
setishock is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 03:39 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0