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 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

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.

(W7 Pro 64 bit)-Wampserver 3.0.9 32 bit - Apache 2.4.27 - PHP 7.1.8/7.0.22/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.7
Wampserver 3.0.9 64 bit - Apache 2.4.27 - PHP 7.1.8/7.0.22/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.7
PhPMyAdmin 4.7.3 - MysqlDumper 1.24.5

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.