Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

send mail not work ...
 
Notifications
Clear all

send mail not work after upgrade to V5.0.0

22 Posts
3 Users
0 Reactions
21.4 K Views
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 
[#2371]

Hello,
can you plz help me to solve this, email notifications not work after projeqtor upgraded to V5.0.0 ...

LOG:
-------------
2015-06-17 14:06:18.264 ** ERROR ** ERROR **
2015-06-17 14:06:18.264
** ERROR ** on file '/var/www/html/projeqtor/external/PHPMailer/class.smtp.php' at line (803)
2015-06-17 14:06:18.264
** ERROR ** cause = fwrite(): send of 16 bytes failed with errno=32 Broken pipe
2015-06-17 14:06:18.265
** ERROR ** Error sending mail
2015-06-17 14:06:18.265
** ERROR ** SMTP Server : mail.xxxxx.dn
2015-06-17 14:06:18.265
** ERROR ** SMTP Port : 587
2015-06-17 14:06:18.265
** ERROR ** Mail stored in Database : #648
2015-06-17 14:06:18.265
** ERROR ** PHPMail error : SMTP connect() failed.
2015-06-17 14:06:18.265
** ERROR ***** PHPMail debug :

--------------------------------


 
Posted : 17 Jun 2015 18H46
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

Log = 8

2015-06-17 16:10:57.261 ** ERROR ** ERROR **
2015-06-17 16:10:57.261
** ERROR ** on file '/var/www/html/projeqtor/external/PHPMailer/class.smtp.php' at line (218)
2015-06-17 16:10:57.261
** ERROR ** cause = stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
2015-06-17 16:10:57.261
** ERROR ** ERROR **
2015-06-17 16:10:57.261 ** ERROR ** on file '/var/www/html/projeqtor/external/PHPMailer/class.smtp.php' at line (218)
2015-06-17 16:10:57.261 ** ERROR ** cause = stream_socket_client(): Failed to enable crypto
2015-06-17 16:10:57.261 ** ERROR ** ERROR **
2015-06-17 16:10:57.261
** ERROR ** on file '/var/www/html/projeqtor/external/PHPMailer/class.smtp.php' at line (218)
2015-06-17 16:10:57.261
** ERROR ** cause = stream_socket_client(): unable to connect to ssl://mail.xxxx.dn:587 (Unknown error)
2015-06-17 16:10:57.262
** ERROR ** Error sending mail
2015-06-17 16:10:57.262
** ERROR ** SMTP Server : ssl://mail.xxxx.dn
2015-06-17 16:10:57.262
** ERROR ** SMTP Port : 587
2015-06-17 16:10:57.262
** ERROR ** Mail stored in Database : #660
2015-06-17 16:10:57.262
** ERROR ** PHPMail error : SMTP connect() failed.
2015-06-17 16:10:57.262
** ERROR ***** PHPMail debug :


 
Posted : 17 Jun 2015 19H15
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

It seems OpenSSL is not enabled on your PHP server.
Could you check ?


 
Posted : 17 Jun 2015 19H27
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

how to check it can you give commande or file to check


 
Posted : 17 Jun 2015 19H44
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

#php -i |grep -A 5 openssl
résultat:
--
openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.1e-fips 11 Feb 2013
OpenSSL Header Version => OpenSSL 1.0.1e-fips 11 Feb 2013


 
Posted : 17 Jun 2015 19H47
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Strange...

From wich version did you migrate ?
(there was no change on V5 on this side)


 
Posted : 17 Jun 2015 20H04
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

its worked fine with 4.7.0 but now with V5.0.0 erreur


 
Posted : 17 Jun 2015 20H09
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

If you used V4.7.0, you may have got it from out of ProjeQtOr site :huh:
as it never existed.
Maybe you meant V4.5.7. 😉

Is it really an upgrade on same server, to same smtp, for same instance (same deployment directory) ?


 
Posted : 17 Jun 2015 21H02
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

yes, it's an upgrade on same server, to same smtp, for same instance (same deployment directory)


 
Posted : 19 Jun 2015 12H51
(@mboelke)
Posts: 6
Active Member
 

Helo,

I had a similar problem when upgrading from 4.5.6 to 5.0.0!

Following steps solved the problem:
First I've cleaned all configuration fields in the mailing section, saved and added them again.

Please don't be angry, if it doesn't help 😉

Regards
Mathias


 
Posted : 19 Jun 2015 13H38
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

@mboelke : tanks for this workaround, it may help anisdz2015, and give me hint to investigate.

@anisdz2015 : could you check and tell me if this also solves the issue for you ?


 
Posted : 19 Jun 2015 13H50
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

hello
I just realized that yesterday I received a notification from the Alert projeqtor server with 5.0.0 there is a notification sent by programmed projeqtor
Otherwise when I try to manually send an email that does not work and I have a message that asks me to contact the administrator
I'll test the hint of mboelke and tell
thank you


 
Posted : 20 Jun 2015 23H00
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

When you send email manually, do you selected receivers and/or enter specific email address ?
And are you sure your received have an email address ?

If no receiver can be defined, you will get message "Not able to send mail to '', Contact your administrator".
But this is not a technical issue, just a warning that no email is sent.

Note that this can also happen if you select a receiver.
For instance, if you select "Responsible" as receiver, but no resposible is defined for the item, no email can be sent.
The same if responsible is set but the corresponding resource has no eamil defined.


 
Posted : 20 Jun 2015 23H14
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

For information, I change type of message so that in latest described cases, non error is generated, just a warning.


 
Posted : 20 Jun 2015 23H40
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

Hello,

I made all possible tests, the same error message when sending is done manually, I even tested sending meeting invitation
see snapshots


 
Posted : 23 Jun 2015 18H19
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

... and email is working when generating alerts ?
... very strange.

Could you check email for special characters, others than @.
Maybe you can also try and send email to single address (your own for instance)


 
Posted : 23 Jun 2015 21H31
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

Hello,
I tested with a single email and it is the same error message

I just saw that I did not receive all the emails sent by project yesterday at 00:00
View Screenshot

I will do another test I will change SMTP server to be sure it is not the mail server that kidding and I will inform you


 
Posted : 24 Jun 2015 14H54
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

What is strange is that some emails are correctly sent.
Not all fail.
So I would bet on SMTP server or more possibly some network issue (possibly some proxy playing with connections)


 
Posted : 24 Jun 2015 15H30
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

after test with hostinger.fr smtp server

Logs:
---------------------------------
2015-06-24 16:15:42.269 ** ERROR ** Error sending mail
2015-06-24 16:15:42.269 ** ERROR ** SMTP Server : mx1.hostinger.fr
2015-06-24 16:15:42.269 ** ERROR ** SMTP Port : 25
2015-06-24 16:15:42.270 ** ERROR ** Mail stored in Database : #713
2015-06-24 16:15:42.270 ** ERROR ** PHPMail error : SMTP Error: The following recipients failed: cxxxmail@gmail.com
2015-06-24 16:15:42.270 ** ERROR ** PHPMail debug :
2015-06-24 16:15:48.869 ..... SCRIPT .... 10.xxx.xx.xx4 /view/objectDetail.php
2015-06-24 16:15:48.870 ..... SCRIPT .... 10.xxx.xx.xx4 Page=objectDetail.php
2015-06-24 16:15:48.914 ..... SCRIPT .... 10.xxx.xx.xx4 ->/view/objectDetail.php
2015-06-24 16:15:48.928 ..... SCRIPT .... 10.xxx.xx.xx4 ->/view/objectButton.php
2015-06-24 16:15:48.937 ..... SCRIPT .... 10.xxx.xx.xx4 ->/tool/getObjectCreationInfo.php
2015-06-24 16:15:48.962 ..... SCRIPT .... 10.xxx.xx.xx4 drawTableFromObject(obj, included=, parentReadOnly=)
2015-06-24 16:15:49.089 ..... SCRIPT .... 10.xxx.xx.xx4 drawTableFromObject(obj, included=1, parentReadOnly=)
2015-06-24 16:15:59.238 ..... SCRIPT .... 10.xxx.xx.xx4 /tool/sendMail.php
2015-06-24 16:15:59.239 ..... SCRIPT .... 10.xxx.xx.xx4 Page=sendMail.php
2015-06-24 16:15:59.280 ..... SCRIPT .... 10.xxx.xx.xx4 ->/tool/sendMail.php
2015-06-24 16:15:59.358 ..... SCRIPT .... 10.xxx.xx.xx4 sendMail_phpmailer
2015-06-24 16:16:00.585 ** ERROR ** Error sending mail
2015-06-24 16:16:00.585 ** ERROR ** SMTP Server : mx1.hostinger.fr
2015-06-24 16:16:00.585 ** ERROR ** SMTP Port : 25
2015-06-24 16:16:00.585 ** ERROR ** Mail stored in Database : #714
2015-06-24 16:16:00.585 ** ERROR ** PHPMail error : SMTP Error: The following recipients failed: pxxxmo@gmail.com
2015-06-24 16:16:00.585 ** ERROR ** PHPMail debug :
2015-06-24 16:16:26.285 ..... SCRIPT .... 10.xxx.xx.xx4 Page=checkAlertToDisplay.php
2015-06-24 16:17:26.423 ..... SCRIPT .... 10.xxx.xx.xx4 Page=checkAlertToDisplay.php
----------------------------------
Firewall ok mx1.hostinger.fr port 25


 
Posted : 24 Jun 2015 19H30
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

It is not a connection error, the smtp server responds.
The mail server just refuses to send to emails to the recipients.
Maybe it is an anti spam functionality of the smtp hosted server.


 
Posted : 24 Jun 2015 19H57
 Anis
(@anisdz2015)
Posts: 24
Active Member
Topic starter
 

hello
mail notification work fine with projeqtor V5.0.1

Thanks for all


 
Posted : 25 Jun 2015 17H25
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Stange as there was no change about email notification on this patch.
Maybe it was some deployment issue fixed by new installation...

Anyway, happy to know your problem is solved.


 
Posted : 25 Jun 2015 18H01
Share:

Scroll to Top