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.
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.
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.
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. 👿
: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
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).
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
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.
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
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 }
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.
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=
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
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.
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=
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