Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Backround image not display in mail

Backround image not display in mail

Scheduled Pinned Locked Moved ASP.NET
htmlhelpquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saravanan05
    wrote on last edited by
    #1

    hi friends <td style="background: url(http://localhost/images/main.jpg) no-repeat top left; width: 684px;> In my html mail template,i have used above code for backround image,my problem is the backround image not display in gmail,yahoo,hotmail..etc how can solve this?

    Known Is Drop.Unknown Is Ocean

    D 1 Reply Last reply
    0
    • S saravanan05

      hi friends <td style="background: url(http://localhost/images/main.jpg) no-repeat top left; width: 684px;> In my html mail template,i have used above code for backround image,my problem is the backround image not display in gmail,yahoo,hotmail..etc how can solve this?

      Known Is Drop.Unknown Is Ocean

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      saravanan05 wrote:

      td style="background: url(http://localhost/images/main.jpg)

      The URL specified here would cause the browser to look for main.jpg on the client machine since localhost refers to 127.0.0.1 which is the self IP for all machines. Change localhost to your Server.DomainName, if it is exposed over the internet or else host your images on a external host and refer it from there. HTH!

      S 1 Reply Last reply
      0
      • D Dinesh Mani

        saravanan05 wrote:

        td style="background: url(http://localhost/images/main.jpg)

        The URL specified here would cause the browser to look for main.jpg on the client machine since localhost refers to 127.0.0.1 which is the self IP for all machines. Change localhost to your Server.DomainName, if it is exposed over the internet or else host your images on a external host and refer it from there. HTH!

        S Offline
        S Offline
        saravanan05
        wrote on last edited by
        #3

        hi thanks for reply Already i tried in live server what you have mentioned(http://192.158.74.120/images/main.jpg)..but it is also not working...

        Known Is Drop.Unknown Is Ocean

        D 1 Reply Last reply
        0
        • S saravanan05

          hi thanks for reply Already i tried in live server what you have mentioned(http://192.158.74.120/images/main.jpg)..but it is also not working...

          Known Is Drop.Unknown Is Ocean

          D Offline
          D Offline
          Dinesh Mani
          wrote on last edited by
          #4

          Are you able to view the images from outside your home/work network? Did you check if Gmail is not just preventing the image display??

          S 1 Reply Last reply
          0
          • D Dinesh Mani

            Are you able to view the images from outside your home/work network? Did you check if Gmail is not just preventing the image display??

            S Offline
            S Offline
            saravanan05
            wrote on last edited by
            #5

            yes,i can see from outside home

            Known Is Drop.Unknown Is Ocean

            D 1 Reply Last reply
            0
            • S saravanan05

              yes,i can see from outside home

              Known Is Drop.Unknown Is Ocean

              D Offline
              D Offline
              Dinesh Mani
              wrote on last edited by
              #6

              In that case I think it is just Gmail blocking the images. You should have an option near the email header that says "Display Images", click it to get your images.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups