View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - v2.2.0:: AutoMail Issue - Page 3 - ProjeQtOr
 
 

v2.2.0:: AutoMail Issue

More
03 Aug 2012 11:48 #13 by babynus
Replied by babynus on topic Re: v2.2.0:: AutoMail Issue
The issue may come from 2 points :
1) the smtp server used by PHP to sent the mail.
In most cases (by default), it is the sendmail program, but you may change it.
Default parameters of sendmail work fine, but these may also have been changed on your side.

2) the mail server of your company, that manages your mailbox (Lotus server ?)
This server is able to filter and transform your mails (for security reasons)

Test you can do :
On your Project'Or RIA application, try to send an email to a remote mail, such as a webmail not depdending on your company (for instance @gmail.com, or your can send it to me - This email address is being protected from spambots. You need JavaScript enabled to view it.)
If mail is wrong = it is your smtp server used by PHP that must be fixed
If mail is correct = you are facing some transformation from your company mailing system. Contact the administrator of this service.

Babynus
Administrator of ProjeQtOr web site

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

More
03 Aug 2012 15:22 #14 by gvecchi
Replied by gvecchi on topic Re: v2.2.0:: AutoMail Issue
Postfix seems to be the problem: I uninstalled it and installed sendmail and HTML emails now work.

I need to find out why postfix doens't let me to correctly realy HTML emails.

Stay tuned ;)

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

More
03 Aug 2012 15:42 #15 by gvecchi
Replied by gvecchi on topic Re: v2.2.0:: AutoMail Issue
The problem is a postfix bug: stackoverflow.com/questions/3449431/php-...-break-html-email-in

For the moment, I can't uninstall current version of postfix (2.7 on Ubuntu 10.04) so I solved modifing tool/projector.php from line 582 to 586

 if (!$headers) {
    $headers  = 'MIME-Version: 1.0' . "\n";
    $headers .= 'Content-type: text/html; charset=utf-8' . "\n";
    $headers .= 'From: ' . (($sender)?$sender:$paramMailSender) . "\n";
    $headers .= 'Reply-To: ' . (($sender)?$sender:$paramMailReplyTo) . "\n";
    $headers .= 'Content-Transfer-Encoding: 8bit' . "\n";
    $headers .= 'X-Mailer: PHP/' . phpversion();
  }

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

More
03 Aug 2012 16:16 - 03 Aug 2012 16:56 #16 by babynus
Replied by babynus on topic Re: v2.2.0:: AutoMail Issue
Hi,
I just changed the code to :
if (!$headers) {
    $eol=(isset($paramMailEol))?$paramMailEol:"\r\n";
    $headers  = 'MIME-Version: 1.0' . $eol;
    $headers .= 'Content-type: text/html; charset=utf-8' . $eol;
    $headers .= 'From: ' . (($sender)?$sender:$paramMailSender) . $eol;
    $headers .= 'Reply-To: ' . (($sender)?$sender:$paramMailReplyTo) . $eol;
    $headers .= 'Content-Transfer-Encoding: 8bit' . $eol;
    $headers .= 'X-Mailer: PHP/' . phpversion();
  }
This way, you'll just have to define
$paramMailEol="\n";
in the parameters.php file, and your config will always be valid, even if you deply new version.
Will be deployed in V2.4.2.

Babynus
Administrator of ProjeQtOr web site
Last edit: 03 Aug 2012 16:56 by babynus.
The following user(s) said Thank You: gvecchi

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

More
03 Aug 2012 16:28 #17 by gvecchi
Replied by gvecchi on topic Re: v2.2.0:: AutoMail Issue
Really good.

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

More
09 Aug 2012 08:20 #18 by gvecchi
Replied by gvecchi on topic Re: v2.2.0:: AutoMail Issue
Do you mean files/config/parameters.php or tool/parameters.php ?

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

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