views:

25

answers:

0

My ActionMailer involves generating a report and,storing it into a HTML file and sending it as a HTML attachment. I wanted to give it some styling , so I added inline styling that gets written into the HTML file everytime the report is generated .

But the styling does not reflect in the attachment. Interestingly, the generated report when opened locally on my machine reflects the styling. I saw the HTML source of the attachment and the inline css styling is missing. I'm absolutely clueless as to why its happening. A heads-up would be appreciated !