Wmapserver Icon is permanently red
Posted by: masaka (85.255.234.---)
Date: July 29, 2017 01:38PM

My wampserver icon went permanently red after I had done the following :

1. Itried to send emails using the PHP mail function in wampser but I got the following error message-
mail() failed to connect to mailserver at &quot,localhost&quot, port 25,verify your &quot-----
2. I then downloaded PHPMailer from the github website.
3. Following the download instructions, I uncommented the following line in the Apache httpd.cof file by removing the # at its beginning
LoadModule ssl_module modules/mod_ssl.so
4. I also copied the following files from the dowloaded PHPMailer into the the folder I was using for php scripts to send out emails in the Komodo IDE:
5.I also enabled i.e. pu a tick against each of these lines in the PHP extensions folder :
I could not enable the php_smtp extension because I could not find it.

After all this, the wampserver icon turned permanently red.
6. When I comment out the LoadModule ssl_module modules/mod_ssl.so line in the Apache httpd.cof file, the icon turns green again and wampserver works again but will not send out emails.
Help to sort out this problem would be appreciated.

Options: ReplyQuote
Re: Wmapserver Icon is permanently red
Posted by: RiggsFolly (Moderator)
Date: July 29, 2017 07:06PM


Please can you answer all these questions so we know what versions of all the possible you are using


Note: I dont believe that the APache module mod_ssl is required to run phpMailer

(Windows 10 Pro 64bit) (Wampserver 3.1.7 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Edited 1 time(s). Last edit at 07/29/2017 07:12PM by RiggsFolly.

Options: ReplyQuote
Re: Wmapserver Icon is permanently red
Posted by: Otomatic (Moderator)
Date: July 29, 2017 08:04PM


The Apache mod_ssl module is not required to use PHPmailer, even if you are using an authenticated SMTP from your Internet Service Provider.

And then, using ssl does not just happen by uncommenting the related line of httpd.conf, there are many other things to perform.
So, I repeat, you do not need ssl at all for PHPmailer.
$mail = new PHPMailer();
$mail->IsHTML      = false;
$mail->SMTPDebug   = false;
$mail->SMTPAuth    = true;

// Settings for the SMTP server.
$mail->Host        = "name of provider smtp"; //For example 'mail.gandi.net'
// Using an authenticated SMTP (SMTPAuth = true) and according to
// ISPs (Internet Service Provider) the port to be used
// and the associated protocol may be different.
// It is the ISP that gives the parameters of sending by SMTP.
$mail->Port        = 25; //25 or 587 or '465 SSL' or '995 TLS'
//$mail->SMTPSecure = "tls"; // tls or ssl
$mail->Username    = "your username to SMTP provider";
$mail->Password    = "your password";
$mail->From        = "your from address";
$mail->FromName    = "Your from name;

//Characteristics of the message
$mail->CharSet     = "utf-8";
$mail->Subject     = $subject;
$mail->Body        = $message;


I would not give any further information about using PHPmailer.
It does not fall under the attributions of this forum that is for people having issues getting WAMPServer running and not a general HOW DO I site for everything web related.

Wampserver 3.1.7 32 bit - Apache 2.4.38 - PHP 7.3.2/7.2.15/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25 - MariaDB 10.3.13
Wampserver 3.1.7 64 bit - Apache 2.4.38 - PHP 7.3.2/7.2.15/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25/8.0.15 - MariaDB 10.3.13
PhPMyadmin 4.8.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Edited 1 time(s). Last edit at 07/29/2017 09:02PM by Otomatic.

Options: ReplyQuote

Sorry, only registered users may post in this forum.