embed images in email are being replaced by hotmail/yahoo using System.net.Mail

liunx

Guest
Hi All , I am running asp.net2.0 beta version and using the new System.net.Mail namespace i am trying to send emails.This is part of a marketting aspect of a webapplication. i am sure many of you's would have done this aspect before .Well my problem is when i send an HTML email .The are dispatched and recieved correctly even the formatting for the page stays there when i view it in the browser but somehow the pictures attached along are not displayed .Apparently when i viewed the source code of the page from HOTmail and Yahoo. My pictures Img src were replaced .According to hotmail it was done for security purposes.Could someone please tell me a way to get around this problem .It seems like both Hotmail and Yahoo have some sorta mechanism to block them out.But then again i am sure it's possible as just last week i remember i recieved an email from Sun Microsystem's site Just a usual Newsletter , but that was full of pics and this was on my yahoo account too and i viewed it using Firefox as i am doing right now . Just can't seem to figure why ?? .as I am attaching along the pictures as attachments to my emails aswell .Here is my Html code in case if it helps .Any ideas or suggestions would be very highly appreciated ! Thanxs in advance

Dim html As String = "<html><head><title>Clipstone Yamaha NewsLetter</title><style type='text/css' >body { " + "background-color: #d5d5d5; background-image: url(bkg.gif);background-repeat: repeat-x;" + "alink='#484848' ;vlink='#484848';link='#CC0000';align = 'center'}</style></head><body>"
html += "<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'><tr><td width='535' style='height: 35px; text-align: left;'><img src='http://www.webdeveloper.com/forum/archive/index.php/pixel.gif' alt='' width='22' height='1' border='0'/><img src='http://www.webdeveloper.com/forum/archive/index.php/title.gif' alt='' width='190' height='31' border='0'/>"
html += "<img src='http://www.webdeveloper.com/forum/archive/index.php/pixel.gif' alt='noPixel' /></td>"
html += "<td style='height: 35px'><font face='Verdana' size='1' color='#FFFFFF'>53 Maroondah Hwy Ringwood 3134</font></td></tr></table>"
html += "<table width='100%' align='center' > " + getHeadingString() + getDescriptionString() + getLinks() + " </table></body></html>"
Tex.WriteLine(html)
 
Back
Top