473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MailMessage - including graphics

I'm using the MailMessage and SmtpMail classes to send HTML emails from my
website. Just wondering if there is a way to include graphics with the
email, which I can reference in the HTML.
Nov 18 '05 #1
5 1080
<img src="http://yourdomain.com/images/someImage.jpg">

If you use an absolute reference, it will fetch the image from your server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:ut**************@TK2MSFTNGP15.phx.gbl...
I'm using the MailMessage and SmtpMail classes to send HTML emails from my
website. Just wondering if there is a way to include graphics with the
email, which I can reference in the HTML.

Nov 18 '05 #2
But what if i want to include the graphic files in the email.. so that
people that view their email offline will also be able to view the
graphics..

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
<img src="http://yourdomain.com/images/someImage.jpg">

If you use an absolute reference, it will fetch the image from your server.
--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Bijoy Naick" <b_*****@yahoo.ca> wrote in message
news:ut**************@TK2MSFTNGP15.phx.gbl...
I'm using the MailMessage and SmtpMail classes to send HTML emails from my website. Just wondering if there is a way to include graphics with the
email, which I can reference in the HTML.


Nov 18 '05 #3
That tends to be a bad idea because of the size of the email when
including graphics. Using an absolute reference is pretty standard and
performs much better than embedded images. Do you have a definite need
for including the images or is it a preference issue?
Regards,
Ian Suttle
http://www.iansuttle.com

Nov 18 '05 #4
I've done quite a few HTML emails in the past, and I've always used abs
reference.. However, in this case, there is a need for it.

Just wondering if there's a way of doing that in .NET

Bijoy

"Ian Suttle" <Ia********@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
That tends to be a bad idea because of the size of the email when
including graphics. Using an absolute reference is pretty standard and
performs much better than embedded images. Do you have a definite need
for including the images or is it a preference issue?
Regards,
Ian Suttle
http://www.iansuttle.com

Nov 18 '05 #5
Sorry Bijoy, I'm not real familiar with embedding the images into the
email.

Thanks,
Ian Suttle
http://www.IanSuttle.com

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: CarlInAl | last post by:
Rather than setting the MailMessage.To and MailMessage.From properties with something like "someName@someDomain.com" I would like to include the name along with the email address. Is something...
4
by: Mark Rae | last post by:
Hi, Can anyone please tell me if it's possible to pass a System.Web.Mail.MailMessage object to a ASP.NET Web Service? Maybe using XML Serialization / Deserialization? I've been asked to...
0
by: Stewart | last post by:
Hi, I have a program which needs to send individual (customized) emails to a few thousand recipients. Using the standard approach SmtpMail/MailMessage method and Win 2000 server (SMTP service...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
6
by: Nathan Sokalski | last post by:
I am using the MailMessage and SmtpMail classes to allow users of my site to send me email at my Hotmail email address. However, it always ends up in the Junkmail folder. Even though I check my...
1
by: asnowfall | last post by:
I am creating MailMessage out of already existing email message. My existing message has few custom properties. I wan to add them to System.Net.Mail.MailMessage How to add custom properties? ...
2
by: asnowfall | last post by:
I am trying to build System.Mail.MailMessage object out of mime encoded SMTP data. I have following questions Byte byteMailData; //mime encoded STMP data for "email with attachment" 1)...
2
by: Martin Carpella | last post by:
Hi, I've got the following stacktrace, suddenly while my application was idle and didn't even have the focus: System.InvalidOperationException: Object is currently in use elsewhere. at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.