I am still trying to figure out, why i cannot apply html formatting in the body of a custom email. I am sure i am missing something, or i need a new pair of eyes!
Here is the info added to the of the web page
<head runat="server">
<link href="~/MyStyle.css" rel="stylesheet" type="text/css" />
</head>
Mystyle.css contains the following
span.orange
{
color: #FF6D06;
font-family: tahoma;
font-size: 10pt;
}
and here comes the body part...
Dim HtmlString as string = "<span class='orange'>This one should be painted</span>"
which is sent by using Net.Mail
Dim objMail As New Mail.MailMessage (blah, blah blah)
objMail.IsBodyHtml = True
UPDATE: First of all thank you for your comments. The email itself is not in any way referenced with the stylesheet in any way. So what options do i have becides attaching the stylesheet to the email?