Forum

v2.2.0:: AutoMail I...
 
Notifications
Retirer tout

v2.2.0:: AutoMail Issue

33 Posts
3 Utilisateurs
0 Reactions
30.5 {numéro}K Vu
(@syncro)
Posts: 14
Active Member
Début du sujet
 
[#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?


 
Posté : 16 Mai AM 09:055
(@babynus)
Posts: 14952
Membre 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)


 
Posté : 16 Mai PM 14:055
(@syncro)
Posts: 14
Active Member
Début du sujet
 

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.


 
Posté : 16 Mai PM 14:055
(@babynus)
Posts: 14952
Membre 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 ?


 
Posté : 16 Mai PM 19:055
(@babynus)
Posts: 14952
Membre 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 ?


 
Posté : 5 Juin PM 20:066
(@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


 
Posté : 2 Août PM 19:088
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

which Lotus client : heavy java one or webmail ?


 
Posté : 2 Août PM 20:088
(@gvecchi)
Posts: 38
Active Member
 

Java one, version 8.5.3 but database version 7.0.3


 
Posté : 3 Août AM 10:088
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

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


 
Posté : 3 Août AM 11:088
(@gvecchi)
Posts: 38
Active Member
 

Do you need additional infos?


 
Posté : 3 Août AM 11:088
(@babynus)
Posts: 14952
Membre 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 :


 
Posté : 3 Août PM 13:088
(@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)?


 
Posté : 3 Août PM 13:088
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 3 Août PM 13:088
(@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 😉


 
Posté : 3 Août PM 17:088
(@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();
  }

 
Posté : 3 Août PM 17:088
Page 1 / 3
Share:
Retour en haut