Feature #8335

Email styles inline

Added by Kaspars Foigts about 7 years ago. Updated over 2 years ago.

Status:ClosedStart date:2011-05-11
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email notifications
Target version:3.2.0
Resolution:Fixed

Description

Since gmail does not support CSS in head, it would be helpful, if Redmine could apply styles inline. This is bearable, but cuteness sometimes wins over hearts of people, who still are not using Redmine.

I'm not much of ruby guy, but proposed solution would be parsing rules from head section, and then applying them to body elements. That should be doable. On the other hand - maybe one can modify views (layout and email templates). If so, that would be sweet also.

On any exception (body is not well formed, head css is not parsable, etc) parser should terminate and fall back, sending message without modifying it.

email-inline-css.diff Magnifier (1.01 KB) Go MAEDA, 2015-08-05 17:36


Related issues

Related to Redmine - Defect #20466: Broken email notification layout in Outlook Closed

Associated revisions

Revision 14540
Added by Toshi MARUYAMA almost 3 years ago

add roadie-rails gem for e-mail inline styles (#8335, #20641)

Contributed by Go MAEDA.

History

#1 Updated by Go MAEDA almost 3 years ago

  • Duplicated by Defect #20311: Task from Email - Styles in task text added

#2 Updated by Go MAEDA almost 3 years ago

  • Duplicated by deleted (Defect #20311: Task from Email - Styles in task text)

#3 Updated by Go MAEDA almost 3 years ago

This issue can be resolved by using roadie-rails gem.

I have created a patch. Styles of all outgoing emails are automatically converted to inline styles.

#4 Updated by Toshi MARUYAMA almost 3 years ago

  • Related to Defect #20466: Broken email notification layout in Outlook added

#5 Updated by Toshi MARUYAMA almost 3 years ago

  • Target version set to 3.2.0

#6 Updated by Jean-Philippe Lang over 2 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Also available in: Atom PDF