View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Sending mail - Page 2 - ProjeQtOr
 
 

Sending mail

More
05 Dec 2013 16:34 #7 by azizknina
Replied by azizknina on topic Sending mail
No this is not mandatory, chaned it but still gettting the same error (smtpserver in the global parameters set to ssl://mail.domain.ma and the file projector.php not changed).

Please Log in or Create an account to join the conversation.

More
08 Dec 2013 14:13 #8 by babynus
Replied by babynus on topic Sending mail
And if you just remove "ssl://" from the host name and change in the code "tls" into "ssl", all works fine ?
Without any other change ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
09 Dec 2013 11:02 #9 by azizknina
Replied by azizknina on topic Sending mail
Indeed, changing in the code 'tls' into 'ssl' works fine.

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 12:14 #10 by babynus
Replied by babynus on topic Sending mail
Could you try to change lines 693 to 702 in /tool/projeqtor.php
if ($paramMailSmtpUsername and $paramMailSmtpPassword) {                    
    $phpmailer->SMTPAuth = true;                           // Enable SMTP authentication
    $phpmailer->Username = $paramMailSmtpUsername;         // SMTP username
    $phpmailer->Password = $paramMailSmtpPassword;         // SMTP password
    $phpmailer->SMTPSecure = 'tls';
    if (strpos($phpmailer->Host,'://')) {
      $phpmailer->SMTPSecure=substr($phpmailer->Host,0,strpos($phpmailer->Host,'://'));
      $phpmailer->Host=substr($phpmailer->Host,strpos($phpmailer->Host,'://')+3);
    }
  }
with these ones
if ($paramMailSmtpUsername and $paramMailSmtpPassword) {
debugLog("Authentified connexion with Host='".$phpmailer->Host."'");                    
    $phpmailer->SMTPAuth = true;                           // Enable SMTP authentication
    $phpmailer->Username = $paramMailSmtpUsername;         // SMTP username
    $phpmailer->Password = $paramMailSmtpPassword;         // SMTP password
    $phpmailer->SMTPSecure = 'tls';
    if (strpos($phpmailer->Host,'://')) {
      $phpmailer->SMTPSecure=substr($phpmailer->Host,0,strpos($phpmailer->Host,'://'));
      $phpmailer->Host=substr($phpmailer->Host,strpos($phpmailer->Host,'://')+3);
    }
debugLog("SMTPSecure='".$phpmailer->SMTPSecure."'");
debugLog("Host='".$phpmailer->Host."'");
  }
(3 debug lines added)

Then test again non working configuration and post log result (or send it to me)

Regards.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 18:29 #11 by azizknina
Replied by azizknina on topic Sending mail
Here is the log of the sending email action:

2013-12-10 17:23:54
DEBUG
Authentified connexion with Host='xx.xx.xx.xx'
2013-12-10 17:23:54
DEBUG
SMTPSecure='tls'
2013-12-10 17:23:54
DEBUG
Host='xx.xx.xx.xx'
2013-12-10 17:24:04 ***** ERROR ***** ERROR *****
2013-12-10 17:24:04 ***** ERROR ***** on file 'C:\xampp\htdocs\projeqtor\external\PHPMailer\class.smtp.php' at line (218)
2013-12-10 17:24:04 ***** ERROR ***** cause = stream_socket_client():
2013-12-10 17:24:04 ***** ERROR ***** Error sending mail
2013-12-10 17:24:04 ***** ERROR ***** SMTP Server : xx.xx.xx.xx
2013-12-10 17:24:04 ***** ERROR ***** SMTP Port : 465
2013-12-10 17:24:04 ***** ERROR ***** Mail stored in Database : #451
2013-12-10 17:24:04 ***** ERROR ***** PHPMail error : SMTP connect() failed.
2013-12-10 17:24:04 ***** ERROR ***** PHPMail debug : 2013-12-10 17:24:04 SMTP ERROR: Failed to connect to server: Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu.
(10060)
SMTP connect() failed.

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 19:27 #12 by babynus
Replied by babynus on topic Sending mail
Hi,

I guess you replaced your real host name with 'xx.xx.xx.xx'
In fact, what you tried will sure not work.
You must set your host to 'ssl://xx.xx.xx.xx'.
Then try again.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.042 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.