Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 19th, 2004, 09:55 PM
Authorized User
 
Join Date: Dec 2003
Location: , , USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default Grey box instead of imgae in email body

Hi,
I'm working on an application that sends email. The body of the email is html code which I need to put an image on it. (Also I tried with iframe). Everything looks good in the design mode but when I get the email, instead of the image, I see a grey square. Can anybody tell me how to fix it?
Thanks in advance

  #2 (permalink)  
Old April 19th, 2004, 09:57 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Use the full link. Instead of linking to it like this:

<img src=yourimage.png>

Link like this:

<img src=http://yourdomain.com/yourfolder/yourimages/yourimage.png>

HTH,

Snib

<><
  #3 (permalink)  
Old April 19th, 2004, 09:59 PM
Authorized User
 
Join Date: Dec 2003
Location: , , USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default

Thanks for your fast response. but I have the link like this :
<img src ="http://localhost/Folder/Images/logo3.gif" >

  #4 (permalink)  
Old April 19th, 2004, 10:02 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

All I can think of is that the image doesn't exist, but I assume you have already checked that (you said it looks fine in design view).

I will let you know if I find a solution for this.

Sorry,

Snib

<><
  #5 (permalink)  
Old April 19th, 2004, 10:15 PM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

If you really have a URL beginning on http://localhost that's still on your local machine and not reachable from the Web.

(o<
//\ =^..^=
  #6 (permalink)  
Old April 19th, 2004, 10:19 PM
Authorized User
 
Join Date: Dec 2003
Location: , , USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default

I'm using my local web Server (IIS) in my machine. I even got the value of the mail body while debuging and the value is perfectly right.
any idea?

  #7 (permalink)  
Old April 20th, 2004, 02:11 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What mail program are you using to view the e-mail? Can you look at the source of the message in that program? If so, what do you see?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Hysteria by Muse (Track 8 from the album: Absolution)

  #8 (permalink)  
Old April 20th, 2004, 09:39 AM
Authorized User
 
Join Date: Dec 2003
Location: , , USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default

I'm using the regular hotmail. when I view the source I see
<img src="http://64.4.26.24/safe.gif" > any idea?
-Ayat

  #9 (permalink)  
Old April 20th, 2004, 09:55 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

That's what I thought. I think you have some spam blocking options enabled in Hotmail. I have that enabled for Yahoo as well. Basically what they do is replace any image embedded in a message with a "safe" image. This prevents you from requesting the image from the spammer's server, and thus acknowledging the fact you received / opened the e-mail. This also confirms your (valid) e-mail address and the spam will continue.

I wouldn't be surprised if it'd work on another mail client, or with this option turned off.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: The Sunshine Underground by The Chemical Brothers (Track 6 from the album: Surrender)

  #10 (permalink)  
Old April 20th, 2004, 10:34 AM
Authorized User
 
Join Date: Dec 2003
Location: , , USA.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default

Thanks, so what is the solution for that?
another question. I need to show a chart which is a .htm file. How can I show it in the body part of the email? I use the iframe to show that but It does not appear in the email. Could you please tell me how to fix it?
Thanks
ayat





Similar Threads
Thread Thread Starter Forum Replies Last Post
grey out (or disable) a text box crmpicco HTML Code Clinic 2 January 20th, 2005 06:13 PM
grey out (or disable) a text box crmpicco Classic ASP Basics 1 January 20th, 2005 01:48 PM
Trying to access email body surbhi All Other Wrox Books 1 September 27th, 2004 05:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.