SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Icon with text link HTML Email

    Hi, everyone I have a question. I design html emails for my employer. In some of our newsletters they link to pdfs. I orignally was going to insert an icon image from our server to help notify the end user that the link was a pdf, but I changed my mind since it may take longer to load.

    But just recently I heard that you could automagically insert an icon via browser insertion without actually loading the icon from the server using some attribute or element along with the <a href=""> tag. I've tried googling it but I've only found basic things such as using css or plain html image tags. The closest thing I found was Attach icons to anything with css But since we are using html email, inline style is about as fancy as we can get.

    Has anyone else heard of this or tried this for html emails? If anyone knows anything about this would be a great help. Thanks.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2011
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We use acymailing for our newsletters. When we indicate "yes" to include images in the email, the image is sent along with the email, (the image does nto need to be called from the server).

    Perhaps reading some of their documentation will give you hints towards a solution: http://www.acyba.com/en/forum/5-how-...ter.html#19737

  3. #3
    SitePoint Member
    Join Date
    Aug 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm.. yeah that won't work since it requires one to use acymailing to send emails. We send virtually everything from our own mail server at the moment. We are testing the waters with constant contact but for the most part all our emails are sent from our own mail server yet. The email i'm referring to happens to be one sent from our own server.

  4. #4
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,881
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Inserting an icon from your server shouldn't slow anything down appreciably unless your readers are connected to the internet by an old cocoa tin and a piece of string ... an icon should be under 1KB, so there's no problem with download speed. What might be a problem is that many email clients don't automatically show 'remote content' (ie images that are not included with the message), so it could look messy if they get an email that has lots of missing images, until they click the "show remote content" option.

    Inserting an icon automatically with CSS still has to download the icon from somewhere, and that somewhere is probably your server. There are two ways to do it, one is to set a background image on the link/class and give it a bit of padding, so that the icon shows up to the side of the link text, and the other is to use content:after (generated content) to add an <img> element. Neither of these are likely to work well in more than a handful of email clients. Outlook 2007 certainly won't render background images, and I would be astonished if it shows generated content. On that basis, manually inserting an icon after relevant links is far and away the most reliable and robust method for email.

  5. #5
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,268
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    In any case, whether you get images to load or not, it's really handy to have
    [link to file...] (PDF, x kb, x pages)
    so I can better decide if now is the time to go grab that PDF or if I want to wait til I'm on some better machine.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •