Python email sending with html and CSS style sheet
<p>I need to generate a email with a content of html file and the several .css files. (Not online css). Up to now I can do this using pure html code. But I cant integrate the style by using a css style sheet.</p>

<blockquote>
  <p>import smtplib
  from email.mime.text import MIMEText
  from email.mime.multipart import MIMEMultipart</p>
</blockquote>

<pre><code>def sendConfirmationMail():

        errors = []
        try:
            f = open('mail.html')
            MailFormat = f.read()
            f.close()

            HTML_BODY = MIMEText(str(MailFormat), 'html')

            TO = "xxxxxxxxxx"
            FROM = "xxxxxxxxxxx"

            MESSAGE = MIMEMultipart('alternative')
            MESSAGE['Subject'] = "Test UI check "
            MESSAGE['From'] = FROM
            MESSAGE['To'] = TO
            MESSAGE.preamble = """
            Your mail reader does not support the report format.
            !"""

            MESSAGE.attach(HTML_BODY)
            s = smtplib.SMTP('localhost')
            s.sendmail(FROM, [TO], MESSAGE.as_string())
            s.quit()            


        except Exception,e:
            errors.append({'sendMail ': str(e)})              
sendConfirmationMail() 
</code></pre>

<p>In the mail.html there are links for css files,</p>

<pre><code>&lt;link href="css/styles.css" rel="stylesheet" type="text/css" /&gt;
</code></pre>

<p>But those styles are not getting effected to the receiving email.
I tried by putting those css content to the html file (to the  tag) also but no luck. 
How can I integrate the CSS properly to the mail format ? </p>
