Email not displaying Image

  • Thread starter Thread starter Mansi Shah
  • Start date Start date
M

Mansi Shah

Hi all,

I have written a code in C# (using StringBuilder) to create mail
subject.

Which is like this:

string Logourl=Request.Url.Scheme + "://" + Request.Url.Authority +
Request.ApplicationPath.TrimEnd('/') + "/" + "/Images/logo.gif";

str = str.Append("<table width='100%' align='center' cellpadding='0'
cellspacing='0' class='shoppingcart> " +
"<tr align='center' style='font:11px/14px Verdana, Arial, Helvetica,
sans-serif; color:#4c4c4c'><td align='center' rowspan='1'
valign='middle' style='height: 71px'><img src= " + LogoURL + "
/></td></tr>" +
"<tr><td><b>Order Date:- </b>" + lblDate + "</td></tr></table>);

mail.body=str;

It sends the mail, displays all other data but not displaying the
logo...displays Blank image button.

can anyone have idea?

Thanks & Regards,
Mansi Shah.
 
Look at the source HTML in the email received by your email client. It is
possible that the URL is incorrect, or incorrectly formatted. If not,
perhaps your email reader is blocking the download of the image, which is
fairly common.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 
Are you using a web http: address where the logo is being stored? or are you trying to embed it
into the email itself?
 
Back
Top