Login or Register

RSS IconRecent posts in this topic

avatar Pro
sharkbyte on Oct 8. 2007. 9:08 pm
Is it possible to change the email notifications to be like the 0.71 ones. Just simple plain text that make people log into the system?

Thanks

Ben
avatar Staff
Ilija Studen on Oct 8. 2007. 9:37 pm
There is one technical reason and a couple of additional, user experience related reasons

Technical reason: Most of the content in new activeCollab is HTML and it is not plain text friendly. To include a comment with formatting (lists, code etc) would require a good HTML to plain/text converter and I haven't find a good one with a license we could use.

Other reasons: Notifications are cleaner. We can use some basic formatting to make them more readable. Links are links - they are clickable and they will not break if they are too long. There is a lot of people who LIKE HTML emails. If we kept it plain text I would bet that we would have a couple of request to support HTML emails.

We are pretty strict on what HTML is supported - only the stuff that adds value. We don't support font color, font family, background colors and stuff like that. What we support are paragraphs, lists, some classes that have meaning, headers, links etc. Email clients can convert that HTML into plain text with ease.
activeCollab Team Member
avatar Pro
sharkbyte on Oct 8. 2007. 10:07 pm
Personally, I prefer no information to be sent (like 0.71 does) as people may act on the information but it's been super-seeded by newer information.

I don't want the comment to be included. I'd like the

------------------
SYSTEM NOTIFICATION
------------------

Ben has added a comment to 'Test Project' click here to see it:

http://......

etc
avatar Pro
sharkbyte on Oct 8. 2007. 10:14 pm
I guess the most important thing is this...

Will I be able to change the notifications myself with an addon?
avatar
fitzage on Oct 9. 2007. 3:44 am
You'll be happy to know that there's already the ability in the admin area to customize the email templates.
avatar Pro
sharkbyte on Oct 9. 2007. 9:31 am
Fitzage,

Yeah, I spotted that, but they're still sent as HTML. I want them sent as plain text.
avatar Staff
Ilija Studen on Oct 9. 2007. 9:40 am
Hi,

I've submitted a ticket so we'll see to fix this in one of the upcoming releases (give you an option to chose format you prefer). In the meantime you can switch format by changing this line:

$message = new Swift_Message($subject, $body, 'text/html');

Into:

$message = new Swift_Message($subject, $body, 'text/plain');

Location: /activecollab/application/modules/system/functions.php, in send_emails() function, somewhere around line 156.
activeCollab Team Member
avatar Pro
sharkbyte on Oct 9. 2007. 9:42 am
Ilija,

You are a true star.

Thanks

Ben
avatar Pro
sharkbyte on Oct 9. 2007. 10:07 am
I'm still getting the mails coming through as HTML even with that change to the code. I've also removed all HTML from the actual notification too.

The source of the email reveals:

MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
avatar Pro
sharkbyte on Oct 9. 2007. 10:32 am
I had to change it in ProjectObject.class.php and now it works fine!

RSS IconRecent posts in this topic