Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Javascript CSS HTML
      <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?
Posted 27-Nov-12 2:48am

1 solution

Rate this: bad
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
Peeyush Pachaori at 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
0 Sergey Alexandrovich Kryukov 886
1 OriginalGriff 390
2 CPallini 255
3 Volynsky Alex 205
4 Richard Deeming 175
0 OriginalGriff 5,540
1 Sergey Alexandrovich Kryukov 4,668
2 CPallini 4,540
3 George Jonsson 3,102
4 Gihan Liyanage 2,445

Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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