Email not displaying Image

Email not displaying Image

am 07.11.2007 11:36:10 von 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("

cellspacing='0' class='shoppingcart> " +
"" +
"
valign='middle' style='height: 71px'> />
Order Date:- " + lblDate + "
);

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.

*** Sent via Developersdex http://www.developersdex.com ***

Re: Email not displaying Image

am 07.11.2007 13:30:36 von 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

"Mansi Shah" wrote in message
news:%23aDPEoSIIHA.1188@TK2MSFTNGP04.phx.gbl...
> 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("

> cellspacing='0' class='shoppingcart> " +
> "" +
> "
> valign='middle' style='height: 71px'> > />
Order Date:- " + lblDate + "
);
>
> 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.
>
> *** Sent via Developersdex http://www.developersdex.com ***

Re: Email not displaying Image

am 07.11.2007 17:45:38 von 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?



Kevin Spencer wrote:
> 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.
>