469,658 Members | 1,862 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,658 developers. It's quick & easy.

Email html page with images

Das
Hi,

I'm trying to email html page & that page also contains the images. I can
do that when we send html page from ms outlook. But I want to attach page c#
code & send the mail through smtp mail.

Thanx in advance..

Regards,

das
Nov 18 '05 #1
5 2927
Place the images on a web server and then...

<img src="http://www.whateverdomainyouuse.com/some_directory/some_image.jpg"
border="0">

--

Derek Davis
dd******@gmail.com

"Das" <Da*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
Hi,

I'm trying to email html page & that page also contains the images. I can
do that when we send html page from ms outlook. But I want to attach page
c#
code & send the mail through smtp mail.

Thanx in advance..

Regards,

das

Nov 18 '05 #2
While that certainly is an option, it's a problem, since you will have
to host those images. It would be easier to just embed the images in the
email itself.

This article shows how to do that. It will have to be tweaked for
however he is sending the email, but it should give the basic idea.

http://www.codeproject.com/csharp/EmbedEmailImages.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"carion1" <dd******@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Place the images on a web server and then...

<img
src="http://www.whateverdomainyouuse.com/some_directory/some_image.jpg"
border="0">

--

Derek Davis
dd******@gmail.com

"Das" <Da*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
Hi,

I'm trying to email html page & that page also contains the images. I can
do that when we send html page from ms outlook. But I want to attach page
c#
code & send the mail through smtp mail.

Thanx in advance..

Regards,

das


Nov 18 '05 #3
Mail server admins around the world love this! Embedding images in the
message is an option but IMO it is a bad one.

--

Derek Davis
dd******@gmail.com

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
While that certainly is an option, it's a problem, since you will have
to host those images. It would be easier to just embed the images in the
email itself.

This article shows how to do that. It will have to be tweaked for
however he is sending the email, but it should give the basic idea.

http://www.codeproject.com/csharp/EmbedEmailImages.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"carion1" <dd******@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Place the images on a web server and then...

<img
src="http://www.whateverdomainyouuse.com/some_directory/some_image.jpg"
border="0">

--

Derek Davis
dd******@gmail.com

"Das" <Da*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
Hi,

I'm trying to email html page & that page also contains the images. I
can
do that when we send html page from ms outlook. But I want to attach
page c#
code & send the mail through smtp mail.

Thanx in advance..

Regards,

das



Nov 18 '05 #4
Why?

The idea is to send a self contained piece of information to the client
which is not dependent on anything outside of the email.

It's actually better than storing the images on your server, since now,
downloadable content in emails is pretty much nixed by any respectable email
client (in order to prevent spam emails from verifying email addresses).

Also, from the mail admin's point of view, it's an extra piece of
information flying through the system. I don't see why they should care
that much (if they are on the receiving end).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"carion1" <dd******@gmail.com> wrote in message
news:O%***************@TK2MSFTNGP10.phx.gbl...
Mail server admins around the world love this! Embedding images in the
message is an option but IMO it is a bad one.

--

Derek Davis
dd******@gmail.com

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP10.phx.gbl...
While that certainly is an option, it's a problem, since you will have
to host those images. It would be easier to just embed the images in the
email itself.

This article shows how to do that. It will have to be tweaked for
however he is sending the email, but it should give the basic idea.

http://www.codeproject.com/csharp/EmbedEmailImages.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"carion1" <dd******@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Place the images on a web server and then...

<img
src="http://www.whateverdomainyouuse.com/some_directory/some_image.jpg"
border="0">

--

Derek Davis
dd******@gmail.com

"Das" <Da*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
Hi,

I'm trying to email html page & that page also contains the images. I
can
do that when we send html page from ms outlook. But I want to attach
page c#
code & send the mail through smtp mail.

Thanx in advance..

Regards,

das



Nov 18 '05 #5
That 20k message is now much bigger. Mail servers are bloated enough. I
completely understand the advantage of this to the programmer (spammer).
Yes, most mail clients will block the external content but they also allow
you to view it if you want. This is just my opinion based on my situation
(exchange is part of my responsibility).

--

Derek Davis
dd******@gmail.com

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
Why?

The idea is to send a self contained piece of information to the client
which is not dependent on anything outside of the email.

It's actually better than storing the images on your server, since now,
downloadable content in emails is pretty much nixed by any respectable
email client (in order to prevent spam emails from verifying email
addresses).

Also, from the mail admin's point of view, it's an extra piece of
information flying through the system. I don't see why they should care
that much (if they are on the receiving end).

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"carion1" <dd******@gmail.com> wrote in message
news:O%***************@TK2MSFTNGP10.phx.gbl...
Mail server admins around the world love this! Embedding images in the
message is an option but IMO it is a bad one.

--

Derek Davis
dd******@gmail.com

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP10.phx.gbl...
While that certainly is an option, it's a problem, since you will
have to host those images. It would be easier to just embed the images
in the email itself.

This article shows how to do that. It will have to be tweaked for
however he is sending the email, but it should give the basic idea.

http://www.codeproject.com/csharp/EmbedEmailImages.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"carion1" <dd******@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Place the images on a web server and then...

<img
src="http://www.whateverdomainyouuse.com/some_directory/some_image.jpg"
border="0">

--

Derek Davis
dd******@gmail.com

"Das" <Da*@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
> Hi,
>
> I'm trying to email html page & that page also contains the images. I
> can
> do that when we send html page from ms outlook. But I want to attach
> page c#
> code & send the mail through smtp mail.
>
> Thanx in advance..
>
> Regards,
>
> das



Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by TLMM | last post: by
7 posts views Thread by cj | last post: by
reply views Thread by sri_san | last post: by
1 post views Thread by =?Utf-8?B?RGF2aWQ=?= | last post: by
2 posts views Thread by Aneesh Pulukkul[MCSD.Net] | last post: by
1 post views Thread by runway27 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.