 |
| 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
|
|
|
|

April 19th, 2004, 09:55 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

April 19th, 2004, 09:57 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
<><
|
|

April 19th, 2004, 09:59 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks for your fast response. but I have the link like this :
<img src ="http://localhost/Folder/Images/logo3.gif" >
|
|

April 19th, 2004, 10:02 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
<><
|
|

April 19th, 2004, 10:15 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
If you really have a URL beginning on http://localhost that's still on your local machine and not reachable from the Web.
(o<
//\ =^..^=
|
|

April 19th, 2004, 10:19 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

April 20th, 2004, 02:11 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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)
|
|

April 20th, 2004, 09:39 AM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

April 20th, 2004, 09:55 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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)
|
|

April 20th, 2004, 10:34 AM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |