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.

v2.2.0:: AutoMail I...
 
Notifications
Clear all

v2.2.0:: AutoMail Issue

33 Posts
3 Users
0 Reactions
30.6 K Views
(@syncro)
Posts: 14
Active Member
Topic starter
 
[#521]

Email sent automatically from Projector v2.2.0 are received with all HTML tags, example below:

X-Mailer: PHP/5.2.13-pl1-gentoo

[Project'Or RIA] Activité #222 moved to status done

The status of Activité #222 [[texte]] has changed to done

Activité #222

projet
:

[[texte]]

type
d'activité :

Development

nom :

[[texte]]

description
:

[[texte]]

émetteur
:

[[texte]]

état
:

done

responsable
:

[[texte]]

résultat
:

[[texte]]

How to resolve this issue?


 
Posted : 16 May 2012 9H15
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

It's not an issue, it is designed this way.
You should configure you email client to be able to display html formatted emails (plain text emails are from another age)


 
Posted : 16 May 2012 14H17
(@syncro)
Posts: 14
Active Member
Topic starter
 

The email client used is working perfectly with HTML content. With earlier versions it was working correctly. Since version 2 was installed, all automatic emails were received in this format. The issue is the same for all other resources who are on different sites and using different email client.


 
Posted : 16 May 2012 14H51
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Do you get the same behavior while sending mail on user screen ?
Do you get the same behavior while sending mail on meeting screen ?

:huh: Strange, 'cos there was no change on that side on V2.2 ...
Didn't you change anything about your SMTP server ?


 
Posted : 16 May 2012 19H18
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

You did not answer to my last questions :
- Do you get the same behavior while sending mail on user screen ?
- Do you get the same behavior while sending mail on meeting screen ?
- Didn't you change anything about your SMTP server ?

Do you still reproduce this anomaly ?


 
Posted : 05 Jun 2012 20H39
(@gvecchi)
Posts: 38
Active Member
 

Same problem here, V2.3.0

I'm using Lotus Notes email client and other HTML mail coming from other sources are ok


 
Posted : 02 Aug 2012 19H58
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

which Lotus client : heavy java one or webmail ?


 
Posted : 02 Aug 2012 20H22
(@gvecchi)
Posts: 38
Active Member
 

Java one, version 8.5.3 but database version 7.0.3


 
Posted : 03 Aug 2012 10H25
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

I re-opened ticket #694.
I will have some tests.


 
Posted : 03 Aug 2012 11H26
(@gvecchi)
Posts: 38
Active Member
 

Do you need additional infos?


 
Posted : 03 Aug 2012 11H31
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

I tested from test database, and all is working fine.
You should have received this mail : can you check it is correcly formatted ?
If so, then you have an issue with your smtp mail server used by PHP : check its configuration.
If display is wrong, you may check configuration of your mailbox server of mail client.

Here are correct display of received email :

With Lotus client :

With Outlook client :


 
Posted : 03 Aug 2012 13H33
(@gvecchi)
Posts: 38
Active Member
 

I received your email (see attachment) and it is good.

If the problem is in my smtp server, why your email is good (the server that delivered your email to me and the smtp server I use for projector ria is the same)?


 
Posted : 03 Aug 2012 13H38
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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 - support@toolware.fr)
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.


 
Posted : 03 Aug 2012 13H48
(@gvecchi)
Posts: 38
Active Member
 

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 😉


 
Posted : 03 Aug 2012 17H22
(@gvecchi)
Posts: 38
Active Member
 

The problem is a postfix bug: http://stackoverflow.com/questions/3449431/php-mail-formatting-issue-why-do-crlf-header-line-endings-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();
  }

 
Posted : 03 Aug 2012 17H42
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,
I just changed the code to :

 if (!$headers) {
    $eol=(isset($paramMailEol))?$paramMailEol:"rn";
    $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.


 
Posted : 03 Aug 2012 18H16
(@gvecchi)
Posts: 38
Active Member
 

Really good.


 
Posted : 03 Aug 2012 18H28
(@gvecchi)
Posts: 38
Active Member
 

It seems not working.

What does

$eol=(isset($paramMailEol))?$paramMailEol:"rn";

means?

If $eol is not set, set $eol as "rn"?

Or maybe files/config/parameters.php needs to be included?


 
Posted : 09 Aug 2012 10H16
(@gvecchi)
Posts: 38
Active Member
 

Do you mean files/config/parameters.php or tool/parameters.php ?


 
Posted : 09 Aug 2012 10H20
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Do you mean files/config/parameters.php or tool/parameters.php ?

I mean parameter file defined in /tool/parametersLocation.php. By default it is /files/config/parameters.php, but it is advised to chnges its location (to put it out of web access).


 
Posted : 09 Aug 2012 11H26
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Do you mean files/config/parameters.php or tool/parameters.php ?

I mean parameter file defined in /tool/parametersLocation.php. By default it is /files/config/parameters.php, but it is advised to changes its location (to put it out of web access).


 
Posted : 09 Aug 2012 11H27
(@gvecchi)
Posts: 38
Active Member
 

I set $paramMailEol in files/config/parameters.php but it doen's work.


 
Posted : 09 Aug 2012 11H58
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

With V2.4.2 or V2.4.3 ?


 
Posted : 09 Aug 2012 13H09
(@gvecchi)
Posts: 38
Active Member
 

2.3.0


 
Posted : 09 Aug 2012 13H24
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Normal it does not work : implementation comes with V2.4.2... :whistle:


 
Posted : 09 Aug 2012 13H57
Page 1 / 2
Share:

Scroll to Top