Click here to Skip to main content
14,430,298 members
Rate this:
Please Sign up or sign in to vote.
<tr>
      <img src="Prototype_ImageSrcForDemo" height="150px" width="150px"></img>
    </tr>


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?
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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
   
v2
Comments
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,808
Richard MacCutchan 2,464
Patrice T 1,420
MadMyche 1,325
phil.o 1,280



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100