Send style sheet as an attachement in a mail

S

subhadeep.de

Hi All,

I am facing a problem while sending a html file using javamail.

The html contains refernces to some style sheet classes but those does
not get applied when I view the html in the mail.

I have also attached the CSS file that contains the style sheet classes
and have changed the <link href="images/style.css"> tags to <link
href="cid:style.css"> in the html to refer to the attached CSS file.

Does any one have a solution for this?

Regards,
SDe
 
G

GaryM

(e-mail address removed) wrote in
I have also attached the CSS file that contains the style sheet
classes and have changed the <link href="images/style.css"> tags
to <link href="cid:style.css"> in the html to refer to the
attached CSS file.

When you attach the style sheet are you setting the Content Disposition
to 'inline'?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top