Click here to Skip to main content
12,896,953 members (54,263 online)
Rate this:
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 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

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2017
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