Forum

Error when sending ...
 
Notifications
Retirer tout

Error when sending mail

13 Posts
3 Utilisateurs
0 Reactions
19.5 {numéro}K Vu
 sa
(@_sa_)
Posts: 39
Trusted Member
Début du sujet
 
[#1530]

Hello,

since the upgrade of my installation from 3.4.4 to 4.0.6, i don't have notification and all my email are note send(they are in error).

I join the log error, can your please Help me.

Best regards

the error log:
....external/PHPMailer/class.smtp.php' at line (218)
2013-12-23 15:39:16 ** ERROR ** cause = stream_socket_client(): unable to connect to auth.smtp.1and1.fr:587 (Connection timed out)
2013-12-23 15:39:16 ** ERROR ** Error sending mail
2013-12-23 15:39:16 ** ERROR ** SMTP Server : auth.smtp.1and1.fr
2013-12-23 15:39:16 ** ERROR ** SMTP Port : 587
2013-12-23 15:39:16 ** ERROR ** Mail stored in Database : #3805
2013-12-23 15:39:16 ** ERROR ** PHPMail error : SMTP connect() failed.
2013-12-23 15:39:16 ** ERROR ** PHPMail debug : ERROR : Impossible to load class SMTP
=> Not found in ../model/SMTP.php
=> Not found in ../model/persistence/SMTP.php


 
Posté : 23/12/2013 5:57 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

The error message is about class not being loaded.

It seems you have issue with spl_autoload_register function...
Which version of PHP are you using ?

If you are using PHP 5.2 :
Can you check that last line of /external/PHPMailer/PHPMailerAutoload.php ends with line :

spl_autoload_register('PHPMailerAutoload', true);

only 2 prameters for the funcrion.

If yourun PHP 5.3 or over :
Can you try to replace last line of /external/PHPMailer/PHPMailerAutoload.php with line :

spl_autoload_register('PHPMailerAutoload', true, true);

(add third parameter).


 
Posté : 24/12/2013 9:02 pm
 sa
(@_sa_)
Posts: 39
Trusted Member
Début du sujet
 

Hello

I use php 5.4, i add the third parameter.
I always get the error.
the log is:
2013-12-24 22:37:28 ** ERROR ** on file '../external/PHPMailer/class.smtp.php' at line (218)
2013-12-24 22:37:28 ** ERROR ** cause = stream_socket_client(): unable to connect to auth.smtp.1and1.fr:25 (Connection timed out)
2013-12-24 22:37:28 ** ERROR ** Error sending mail
2013-12-24 22:37:28 ** ERROR ** SMTP Server : auth.smtp.1and1.fr
2013-12-24 22:37:28 ** ERROR ** SMTP Port : 25
2013-12-24 22:37:28 ** ERROR ** Mail stored in Database : #3812
2013-12-24 22:37:28 ** ERROR ** PHPMail error : SMTP connect() failed.
2013-12-24 22:37:28 ** ERROR ** PHPMail debug :

Best regards.


 
Posté : 25/12/2013 12:58 am
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Here is logged a connection with port 25.
It was port 587 on previous log.

I guess it should be port 587 (port 25 is generally used for not authentified connections)
Could you check your credentials, and their validity : maybe several unsuccessfull tries locked the account.


 
Posté : 25/12/2013 5:32 pm
 sa
(@_sa_)
Posts: 39
Trusted Member
Début du sujet
 

I tested with port 25 and port 587, and i have the same error.
with V3.4.4, i used port 25 and the emails are sent. Only with the new version i have the error.

I change my configuration to set gmail.com, and i have the same error.

Is it a problem of password?

the password is written in plain text in the menu settings globlaes, maybe it is encrypted in the database.
When the connection to the SMTP server, the password remains encrypted and the connection is impossible due to the wrong password sent

Best regards.


 
Posté : 25/12/2013 6:56 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

If you use an anthentified connection, maybe the protocole should be specified.
Defaut protocole is TLS, but you can specify SSL : just add protocole before host :
ssl://auth.smtp.1and1.fr


 
Posté : 25/12/2013 8:53 pm
 sa
(@_sa_)
Posts: 39
Trusted Member
Début du sujet
 

I add ssl but the email is still in error
2013-12-25 19:49:37 ** ERROR ** cause = stream_socket_client(): unable to connect to ssl://auth.smtp.1and1.fr:587 (Connection timed out)
2013-12-25 19:49:37 ** ERROR ** Error sending mail
2013-12-25 19:49:37 ** ERROR ** SMTP Server : ssl://auth.smtp.1and1.fr
2013-12-25 19:49:37 ** ERROR ** SMTP Port : 587
2013-12-25 19:49:37 ** ERROR ** Mail stored in Database : #3830
2013-12-25 19:49:37 ** ERROR ** PHPMail error : SMTP connect() failed.
2013-12-25 19:49:37 ** ERROR ** PHPMail debug :

i create a simple php programme to send mail with my adresse and it is working well. I ask 1and1 if the email adress is blocked, they confirmed that it is ok for them.

I try withe smtp.gmail.com with my personnal adress and it is not working.
🙁

Thx


 
Posté : 25/12/2013 9:55 pm
(@babynus)
Posts: 14952
Membre Admin
 

There must be a misconfiguration either in the global parameters screen, or in PHP server or in server hosting, or in firewalls.

Here is the sample of my own Gmail configutaiton that works fine :

also check for ssl enabling in your php config.


 
Posté : 25/12/2013 11:49 pm
 sa
(@_sa_)
Posts: 39
Trusted Member
Début du sujet
 

Hello

First, think you for your help.

I tried to set gmail smtp server but i have the same error.

Finally, i create a php class to test phpmailer, installed in external/phpmailer and it is not working.

I asked the support of 1and1, but for them it is not caused by their smtp server. They send me a php program with mail(....) fonction and it is ok.

I am blocked, is it possible to get the same fonction as the V3.4.4 so i can replace the new code with the last one(only for sending emails).

Best regards.


 
Posté : 29/12/2013 8:41 pm
(@babynus)
Posts: 14952
Membre Admin
 

is it possible to get the same fonction as the V3.4.4 so i can replace the new code with the last one(only for sending emails).

Yes, easy !!!
(I should have proposed it sooner :blush: )

Just add in your parameters.php file :

$paramMailerType='mail';

for old style not authentified mail connection

or

$paramMailerType='socket';

for old style authentified mail connection


 
Posté : 29/12/2013 9:35 pm
 sa
(@_sa_)
Posts: 39
Trusted Member
Début du sujet
 

I added the line but it does not work 🙁
I search where the sending email is called and I uncomment the line 631 in the file projeqtor.php.

in the screen of the mail sent, it is ok but in the log it is not ok...

🙁


 
Posté : 29/12/2013 10:23 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

You're right !!!

You could get same behaviour with parameter added in parameters.php and replacing line 631 in projectror.php with :

$paramMailerType=Parameter::getGlobalParameter('paramMailerType');

(the parametering was not complete)

This is included for next version, so that if you add parameter in parameters.php, you won't have to bother with code update during next upgrade.


 
Posté : 30/12/2013 1:10 am
(@rakesh4java)
Posts: 6
Active Member
 

Not able to send mail to is coming....
how to check and where to check.
version is
Projeqtor : V6.0.4
MySQL : 5.6.31
Web Server is IIS
PHP Version is php-5.6.28-Win32-VC11-x86
Tried with PHP Version 5.3 also...
getting the same error.

What I did: -
written a sample phpmail page using mail() function like below and it works.
Tried with mail($to, $subject, $msg, $from, $headers);
php.ini file is configured with SMTP server address and port 25.
only from Projeqtor it is not going.
Can you help

below is the ajax request that is happening while clicking the send mail icon from the Projects Window.
http://localhost:81/projeqtor/tool/sendMail.php?className=Mailable&destinationWidth=48&destinationHeight=0&isIE=
Response is

Not able to send mail to 'rakesh1084@gmail.com'.

 
Posté : 21/12/2016 11:46 am
Share:
Retour en haut