View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - configuration d'envoi émail - Page 6 - ProjeQtOr
 
 

configuration d'envoi émail

More
27 Jul 2013 14:50 - 27 Jul 2013 15:11 #31 by babynus
So, it confirms that headers are identical in both cases (working and not working).

The only significant difference is the message body.

So please, could you try 2 tests :

1) In /model/persistence/SqlElement.php, add 1 line after line 2473, this way :
public function getMailDetail () {
    return "OK";
and test sending mail.

2) copy the attaches SqlElement.php file into /model/persistence
and test again.

Thanks.

Babynus
Administrator of ProjeQtOr web site
Last edit: 27 Jul 2013 15:11 by babynus.
The following user(s) said Thank You: timoumi

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

More
27 Jul 2013 16:34 #32 by timoumi
I added line " return "OK";" after public function getMailDetail () { (Line 2743)
the message error in log file :


2013-07-27 16:27:28
DEBUG
mail()
2013-07-27 16:27:28
DEBUG
to=***************@gmail.com
2013-07-27 16:27:28
DEBUG
title=[My Own Project'Or RIA] message from admin : Project #1
2013-07-27 16:27:28
DEBUG
message=<html>
<head>
<title>[My Own Project'Or RIA] message from admin : Project #1</title>
</head>
<body>
test<br/><br/>OK
<body>
</html>
2013-07-27 16:27:28
DEBUG
headers=MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
From: **************@*********.tn
Reply-To: ***************@**********.tn
Content-Transfer-Encoding: 8bit
X-Mailer: PHP/5.3.10
2013-07-27 16:27:31 ***** ERROR ***** ERROR *****
2013-07-27 16:27:31 ***** ERROR ***** on file 'C:\wamp\www\pr\tool\projector.php' at line (855)
2013-07-27 16:27:31 ***** ERROR ***** cause = mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 451 See pobox.com/~djb/docs/smtplf.html.
2013-07-27 16:27:31
DEBUG
resultMail=
2013-07-27 16:27:31 ***** ERROR ***** Error sending mail
2013-07-27 16:27:31 ***** ERROR ***** SMTP Server : smtp.********.tn
2013-07-27 16:27:31 ***** ERROR ***** SMTP Port : 25
2013-07-27 16:27:31 ***** ERROR ***** Sendmail path :
2013-07-27 16:27:31 ***** ERROR ***** Mail stored in Database : #12




To resolve this issue ,would you mind to tell me about your web-container (easyphp, wamp, xampp, version, and your project'or ria version ... :silly:
Attachments:

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

More
27 Jul 2013 17:30 - 27 Jul 2013 17:31 #33 by babynus
Can you try to copy the attached SqlElement.php file into /model/persistence
and test again (after unziping it !).
Thanks.

Babynus
Administrator of ProjeQtOr web site
Attachments:
Last edit: 27 Jul 2013 17:31 by babynus.

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

More
27 Jul 2013 18:15 - 27 Jul 2013 18:19 #34 by timoumi
always the same error on project module when i try to send mail.
log file:
2013-07-27 18:04:59
DEBUG
mail()
2013-07-27 18:04:59
DEBUG
to=*********@**.**
2013-07-27 18:04:59
DEBUG
title=[My Own Project'Or RIA] message from admin : Project #1
2013-07-27 18:04:59
DEBUG
message=<html><head><title>[My Own Project'Or RIA] message from admin :
Project #1</title></head><body>google<br/><br/><table
style="font-size:9pt; width: 95%"><tr><td colspan="2"
style="font-size:18pt;color:#AAAAAA"><a
href="http://localhost/pr/view/main.php?directAccess=true&objectClass=Project&objectId=1">Project
#1</a></td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align: middle;">&nbsp;&nbsp;id&nbsp;</td><td
style="background:#FFFFFF;text-align: left;">&nbsp;<span
style="color:grey;">#</span>1</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;name&nbsp;</td><td
style="background:#FFFFFF;text-align:
left;">&nbsp;test</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;type&nbsp;</td><td
style="background:#FFFFFF;text-align: left;">&nbsp;Fixed
Price</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;customer&nbsp;</td><td
style="background:#FFFFFF;text-align: left;">&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align: middle;">&nbsp;&nbsp;bill
contact&nbsp;</td><td style="background:#FFFFFF;text-align:
left;">&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align: middle;">&nbsp;&nbsp;project
code&nbsp;</td><td style="background:#FFFFFF;text-align:
left;">&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align: middle;">&nbsp;&nbsp;contract
code&nbsp;</td><td style="background:#FFFFFF;text-align:
left;">&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align: middle;">&nbsp;&nbsp;is sub-project
of&nbsp;</td><td style="background:#FFFFFF;text-align:
left;">&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;manager&nbsp;</td><td
style="background:#FFFFFF;text-align:
left;">&nbsp;admin</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;color&nbsp;</td><td
style="background:#FFFFFF;text-align: left;">&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;status&nbsp;</td><td
style="background:#FFFFFF;text-align:
left;">&nbsp;recorded</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align: middle;">&nbsp;&nbsp;health
status&nbsp;</td><td style="background:#FFFFFF;text-align:
left;">&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align: middle;">&nbsp;&nbsp;fix
planning&nbsp;</td><td style="background:#FFFFFF;text-align:
left;">&nbsp;<input type="checkbox" disabled="disabled"
/></td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;done&nbsp;</td><td
style="background:#FFFFFF;text-align: left;">&nbsp;<input
type="checkbox" disabled="disabled"
/>&nbsp;&nbsp;&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;closed&nbsp;</td><td
style="background:#FFFFFF;text-align: left;">&nbsp;<input
type="checkbox" disabled="disabled"
/>&nbsp;&nbsp;&nbsp;</td></tr><tr><td
style="background:#DDDDDD;font-weight:bold;text-align:
right;width:25%;vertical-align:
middle;">&nbsp;&nbsp;description&nbsp;</td><td
style="background:#FFFFFF;text-align: left;">&nbsp;</td></tr><tr><td
colspan="2" style="background:#555555;color: #FFFFFF; text-align:
center;font-size:10pt;font-weight:bold;">Notes</td></tr></table><body></html>
2013-07-27 18:04:59
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 18:04:59 ***** ERROR ***** ERROR *****
2013-07-27 18:04:59 ***** ERROR ***** on file 'C:\wamp\www\pr\tool\projector.php' at line (855)
2013-07-27 18:04:59 ***** ERROR ***** cause = mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 451 See pobox.com/~djb/docs/smtplf.html.
2013-07-27 18:04:59
DEBUG
resultMail=
2013-07-27 18:04:59 ***** ERROR ***** Error sending mail
2013-07-27 18:04:59 ***** ERROR ***** SMTP Server : smtp.*****.tn
2013-07-27 18:04:59 ***** ERROR ***** SMTP Port : 25
2013-07-27 18:04:59 ***** ERROR ***** Sendmail path :
2013-07-27 18:04:59 ***** ERROR ***** Mail stored in Database : #19
Last edit: 27 Jul 2013 18:19 by timoumi.

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

More
27 Jul 2013 18:34 #35 by babynus
Another try : always with the provided SqlElement.php, change /tool/projector.php and add
$messageBody = wordwrap($messageBody, 70);
at line 589.
It should give :
function sendMail($to, $subject, $messageBody, $object=null, $headers=null, $sender=null, $boundary=null)  {
	$paramMailSmtpUsername = Parameter::getGlobalParameter('paramMailSmtpUsername');
	$paramMailSmtpPassword = Parameter::getGlobalParameter('paramMailSmtpPassword');
	$messageBody = wordwrap($messageBody, 70);
	if (! $paramMailSmtpUsername or ! $paramMailSmtpPassword) {
	  return sendMailAnonymous($to, $subject, $messageBody, $object, $headers, $sender, $boundary);	
	} else {
	  return sendMailAuthentified($to, $subject, $messageBody, $object, $headers, $sender, $boundary);
	}
}
and try again...

Babynus
Administrator of ProjeQtOr web site

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

More
27 Jul 2013 22:16 #36 by timoumi
thank you very much for your attention but there are the same error :woohoo:

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

Moderators: babynusprotion
Time to create page: 0.059 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.