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:
PHPMailerAutoload.php
class.phpmailer.php
class.smtp.php
5.I also enabled i.e. pu a tick against each of these lines in the PHP extensions folder :
php_openssl
php_sockets
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

Hi

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

READ (and answer) BEFORE YOU ASK A QUESTION

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

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 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

Hi,

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->SetLanguage('en');
$mail->IsSMTP();
$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;

$mail->Send();

$mail->SmtpClose();
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.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



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.