Forum

configuration d'env...
 
Notifications
Retirer tout

configuration d'envoi émail

48 Posts
3 Utilisateurs
0 Reactions
162.3 K Vu
(@babynus)
Posts: 14952
Membre Admin
 

1) Check that the project manager has a correct email address.
Pay attention : project manager is the resource designed as manager on the project.

2) Try and change the "end of line format for mail" in the global parameters screen.
If your mail server uses postfix with version < 2.1 it will fix the issue.
It may also work in some other cases.


 
Posté : 24/07/2013 5:26 pm
ameur
(@timoumi)
Posts: 32
Eminent Member
Début du sujet
 

Not Ok !!!
By using this configuration, i couldn't sent mail on project informations but i can send mails for users informations.
help me please.


 
Posté : 25/07/2013 3:49 am
(@babynus)
Posts: 14952
Membre Admin
 

Sorry, but not Ok !!! is not a convenient answer. :angry:
If you wish to get some help, please describe your issue as detailed as possible.
Please answer the two previous questions one by one.
If possible also provide a print screen to detail each answer.

Here is a third question :
3) Can you try another mail receiver.
For instance, try "other" and enter an email you are sure must work.


 
Posté : 25/07/2013 1:38 pm
ameur
(@timoumi)
Posts: 32
Eminent Member
Début du sujet
 

Dear babynus

sent to the users is ok, but the error is when I try to send the project information by email. 🙁
Thank y for help me.


 
Posté : 26/07/2013 1:49 am
(@babynus)
Posts: 14952
Membre Admin
 

Please try and reply to questions one by one :

1) Check that the project manager has a correct email address.
Pay attention : project manager is the resource designed as manager on the project.

2) Try and change the "end of line format for mail" in the global parameters screen.
If your mail server uses postfix with version 3 questions => you should provide 3 answers

You cannot get help if you don't give information. 👿


 
Posté : 26/07/2013 2:21 am
ameur
(@timoumi)
Posts: 32
Eminent Member
Début du sujet
 

:woohoo:
1- the project manager has a correct email address (my personel address).
2- I changed the "end of line format for mail" in the global parameters screen.
3- I try other mail on other domain(gmail, yahoo),
===> but always there is an ERROR when sending mail

LOG file:
2013-07-26 00:53:46 ===== TRACE ===== sendMailAnonymous
2013-07-26 00:53:47 ** ERROR ** ERROR **
2013-07-26 00:53:47
** ERROR ** on file 'C:wampwwwprotoolprojector.php' at line (877)
2013-07-26 00:53:47
** ERROR ** cause = mail() [function.mail]: Failed to Receive
2013-07-26 00:53:47
** ERROR ** Error sending mail
2013-07-26 00:53:47
** ERROR ** SMTP Server : smtp.topnet.tn
2013-07-26 00:53:47
** ERROR ** SMTP Port : 25
2013-07-26 00:53:47
** ERROR ** Sendmail path :
2013-07-26 00:53:47
** ERROR ***** Mail stored in Database : #11


 
Posté : 26/07/2013 2:57 am
(@babynus)
Posts: 14952
Membre Admin
 

The error message looks like you cannot reach the smtp server.
In may be because this server does not allow access on default port 25, or does not allow anonymous connections.
But what is very strange is that you say that you can send mails through user screen, as it uses the same code.

To understand, please modify /tool/projector.php this way :
change line 649 :

$resultMail=mail($to,$title,$message,$headers);

to :

debugLog("mail()");
debugLog("to=$to");
debugLog("title=$title");
debugLog("message=$message");
debugLog("headers=$headers");
$resultMail=mail($to,$title,$message,$headers);
debugLog("resultMail=$resultMail");

Then try to send 2 mails :
First from user (should work).
Second from project (should fail).
You should get some debug traced in the log file.
Please post them here (you may mask emails adresses for confidentiality).


 
Posté : 26/07/2013 9:44 pm
ameur
(@timoumi)
Posts: 32
Eminent Member
Début du sujet
 

Exactly is what you tell me, the second essay does not work to send mail from project module.
🙁 I use the 3.4.0 version of proect'or ria
this is the log file:

2013-07-27 00:04:05 ===== TRACE ===== sendMailAnonymous
2013-07-27 00:05:16 ===== TRACE ===== sendMailAnonymous
2013-07-27 00:05:17 ** ERROR ** ERROR **
2013-07-27 00:05:17
** ERROR ** on file 'C:wampwwwprotoolprojector.php' at line (883)
2013-07-27 00:05:17
** ERROR ** cause = mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html.
2013-07-27 00:05:17
** ERROR ** Error sending mail
2013-07-27 00:05:17
** ERROR ** SMTP Server : smtp.topnet.tn
2013-07-27 00:05:17
** ERROR ** SMTP Port : 25
2013-07-27 00:05:17
** ERROR ** Sendmail path :
2013-07-27 00:05:17
** ERROR ***** Mail stored in Database : #14


 
Posté : 27/07/2013 2:14 am
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

The log is not as expected.
I expect some debug traces.
Maybe you should set logLevel to 3 in parameters.php

$logLevel='3';

Thne try again and post log result.


 
Posté : 27/07/2013 2:23 am
(@babynus)
Posts: 14952
Membre Admin
 

In addition Error reported now is

451 - The command has been aborted due to a server error. Not your fault. Maybe let the admin know.

It is generally reported when end of line is not correct.
You should return to default rn


 
Posté : 27/07/2013 2:27 am
ameur
(@timoumi)
Posts: 32
Eminent Member
Début du sujet
 

I change to default rn
But not work
the log file :
///////////////
2013-07-27 00:33:13 ===== TRACE ===== sendMailAnonymous
2013-07-27 00:33:14 ** ERROR ** ERROR **
2013-07-27 00:33:14
** ERROR ** on file 'C:wampwwwprotoolprojector.php' at line (883)
2013-07-27 00:33:14
** ERROR ** cause = mail() [function.mail]: Failed to Receive
2013-07-27 00:33:14
** ERROR ** Error sending mail
2013-07-27 00:33:14
** ERROR ** SMTP Server : smtp.topnet.tn
2013-07-27 00:33:14
** ERROR ** SMTP Port : 25
2013-07-27 00:33:14
** ERROR ** Sendmail path :
2013-07-27 00:33:14
** ERROR ***** Mail stored in Database : #18

//////////////////////////////
the lines on file "projector.php"
///////////////////////////////
876 if ($paramMailSmtpServer!==null) {
877 //$resultMail=mail($to,$title,$message,$headers);
878 debugLog("mail()");
879 debugLog("to=$to");
880 debugLog("title=$title");
881 debugLog("message=$message");
882 debugLog("headers=$headers");
883 $resultMail=mail($to,$title,$message,$headers);
884 debugLog("resultMail=$resultMail");
885
886 } else {
887 errorLog(" SMTP Server not set. Not able to send mail.");
888 }


 
Posté : 27/07/2013 2:39 am
(@babynus)
Posts: 14952
Membre Admin
 

Please read all the posts :S

The log is not as expected.
I expect some debug traces.
You should set logLevel to 3 in parameters.php

$logLevel='3';

Thne try again and post log result.


 
Posté : 27/07/2013 2:49 am
ameur
(@timoumi)
Posts: 32
Eminent Member
Début du sujet
 

After setting logLevel to 3
the log file when sending ùail on project module. I try the new latest version of project'or ria

2013-07-27 10:45:47 ----- DEBUG ----- mail()
2013-07-27 10:45:47 ----- DEBUG ----- to=******@.**
2013-07-27 10:45:47 ----- DEBUG ----- title=[My Own Project'Or RIA] message from admin : Project #1
2013-07-27 10:45:47 ----- DEBUG ----- message=

[My Own Project'Or RIA] message from admin : Project #1

hekko

Project
#1
  id   #1
  name   test
  type   Fixed
Price
  customer   
  bill
contact 
 
  project
code 
 
  contract
code 
 
  is sub-project
of 
 
  manager   admin
  color   
  status   recorded
  health
status 
 
  fix
planning 
 
  done      
  closed      
  description   
Notes

2013-07-27 10:45:47 ----- DEBUG ----- headers=MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
From: ******@.**
Reply-To: ******@.**
Content-Transfer-Encoding: 8bit
X-Mailer: PHP/5.3.10
2013-07-27 10:45:48 ** ERROR ** ERROR **
2013-07-27 10:45:48
** ERROR ** on file 'C:wampwwwprtoolprojector.php' at line (855)
2013-07-27 10:45:48
** ERROR ** cause = mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html.
2013-07-27 10:45:48 ----- DEBUG ----- resultMail=
2013-07-27 10:45:48
** ERROR ** Error sending mail
2013-07-27 10:45:48
** ERROR ** SMTP Server : smtp.**.**
2013-07-27 10:45:48 ** ERROR ** SMTP Port : 25
2013-07-27 10:45:48 ** ERROR ** Sendmail path :
2013-07-27 10:45:48 ** ERROR ** Mail stored in Database : #3


 
Posté : 27/07/2013 12:58 pm
(@babynus)
Posts: 14952
Membre Admin
 

Thanks for the log.
The error is 451 again...

1) What is the end of line on the global parameters screen ?
It should be default "rn".

2) Could you please try from user, where it works correctly.

3) Could you also try from another item (ticket for instance)

and post here again log result.
Thanks.


 
Posté : 27/07/2013 2:09 pm
ameur
(@timoumi)
Posts: 32
Eminent Member
Début du sujet
 

1) The end of line on the global parameters screen "rn".
2) Send mail from user works correctly
3) send mail from ticket not works
Log file:
//////////////
/////////////////////////////
Log Mail send from user module
/////////////////////////////
2013-07-27 12:29:29 ----- DEBUG ----- mail()
2013-07-27 12:29:29 ----- DEBUG ----- to=******@**.**
2013-07-27 12:29:29 ----- DEBUG ----- title=[My Own Project'Or RIA] message from : Your account information
2013-07-27 12:29:29 ----- DEBUG ----- message=You are welcome to My Own Project'Or RIA at http://localhost/pr .
Your login is admin.
Your password is initialized to admin
You will have to change it on first connection.

In case of an issue contact your administrator at ******@**.**.
2013-07-27 12:29:29 ----- DEBUG ----- headers=MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
From: ******@**.**
Reply-To: ******@**.**
Content-Transfer-Encoding: 8bit
X-Mailer: PHP/5.3.10
2013-07-27 12:29:30 ----- DEBUG ----- resultMail=1
////////////////////////
Log Mail send from ticket module
///////////////////////
2013-07-27 12:30:30 ----- DEBUG ----- mail()
2013-07-27 12:30:30 ----- DEBUG ----- to=******@yahoo.fr
2013-07-27 12:30:30 ----- DEBUG ----- title=[My Own Project'Or RIA] message from admin : Ticket #1
2013-07-27 12:30:30 ----- DEBUG ----- message=

[My Own Project'Or RIA] message from admin : Ticket #1

test

Ticket
#1
Description
  id   #1   -INC-1
  project   test
  ticket
type 
 Incident
  name   test
  external
reference 
 
  urgency   
  creation
date/time 
 27/07/2013
12:25
  issuer   admin
  requestor   
  origin   
  duplicate
ticket 
 
  context         
  product   
  original
version 
 
  description   
Treatment
  planning
activity 
 
  status   recorded
  responsible   
  criticality   
  priority   
  initial due
date/time 
 
  actual due
date/time 
 
  handled      
  done      
  closed      
  target
version 
 
  result   
Notes

2013-07-27 12:30:30 ----- DEBUG ----- headers=MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
From: ***@**.**
Reply-To: ******@**.**
Content-Transfer-Encoding: 8bit
X-Mailer: PHP/5.3.10
2013-07-27 12:30:31 ** ERROR ** ERROR **
2013-07-27 12:30:31
** ERROR ** on file 'C:wampwwwprtoolprojector.php' at line (855)
2013-07-27 12:30:31
** ERROR ** cause = mail() [function.mail]: Failed to Receive
2013-07-27 12:30:31 ----- DEBUG ----- resultMail=
2013-07-27 12:30:31
** ERROR ** Error sending mail
2013-07-27 12:30:31
** ERROR ** SMTP Server : smtp.***.tn
2013-07-27 12:30:31
** ERROR ** SMTP Port : 25
2013-07-27 12:30:31
** ERROR ** Sendmail path :
2013-07-27 12:30:31
** ERROR ***** Mail stored in Database : #8


 
Posté : 27/07/2013 2:39 pm
Page 2 / 4
Share:
Retour en haut