Embed image in css for e-mail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Ross
    New Member
    • Jan 2007
    • 119

    Embed image in css for e-mail

    I am trying to make a function for my web site that will send an e-mail to new users. This email is going to be in HTMl format and I want to include images.
    Now I can embed images using -
    Dim box As New LinkedResource( HttpContext.Cur rent.Server.Map Path("~/Images/box.gif"), Net.Mime.MediaT ypeNames.Image. Gif)
    box.ContentId = "el_box"
    htmlView.Linked Resources.Add(b ox)
    and -
    <img src="cid:el_box " ></img>
    in the HTML. But what I would like to do is use an embedded image in the css i.e -
    .bt {
    height:15px;
    margin:0 -6px;
    background:url( cid:el_box) 100% 0 no-repeat;
    }
    I can use the same method for attaching the image to the email as above but this will then only display in outlook and not hotmail or googlemail.

    Anyone know how to embed an image for use with css inside an email?

    I am using vb.net version 2.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    webmail programs might just blanket BLOCK that type of interaction with css/images/email?

    Comment

    Working...