Click here to Skip to main content
15,902,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
      <img src="Prototype_ImageSrcForDemo" height="150px" width="150px"></img>

Above HTML is part of one email which I am sending using SmtpClient. No issues in it.

Problem is with the resizing part. As shown in the above code snippet; if my image is big, height and width are not getting applied to it hence original sized image is getting displayed in the mail in Outlook. However if I see same email in browser/Web mail, image gets re sized correctly.
Can anyone help me figure out this issue?

1 solution

I use it this way in my c# mailer program with no problems

<img src="Img.jpg" width="795" height="669" galleryimg="no"></img>

you could as well try to do it with the Style tag
Share this answer
Peeyush Pachaori 27-Nov-12 9:32am    
It's not working in Outlook work well in webmail.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900