Email not displaying Image

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

Kevin Spencer

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
 
M

Miro

Are you using a web http: address where the logo is being stored? or are you trying to embed it
into the email itself?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top