Send .aspx to e-mail??

  • Thread starter Thread starter Retf
  • Start date Start date
R

Retf

Hi All,
I need send the aspx to e-mail (like a html newslwtter).
This is possible?

If yes Hoto to I get this?
 
Hi,

You could do something like use WebRequest to make the request, then using
GetResponseStream() will give you the stream of the response, all you have
to do is use this as the text of your email and send it.
One point you should be aware of are the images, make sure that the links
for the images are not relatives. even so try to use as less images as
possible, OE under XP SP 2 does not display these images due security
concerns.


cheers,
 
Alternatively you could use the class I just wrote for this very purpose. It
does all the mime encoding and reference fixups and it copes with relative
URLS, backpathed URLS and indirect references through CSS (you can specify a
watermark graphic with CSS). It also composites linked CSS and converts it
into a <STYLE> block embedded in the HTML, in order to stop Outlook Web
Access from stripping it. If you send a stylesheeted web page with Outlook
Express and read it with OWA you lose the stylesheet and therefore the
formatting. If you do it my way it works - even watermarks. Alas it doesn't
work with hotmail clients. They strip everything but tables, img tags and
text. They're horrible.

No COM interop. Just RFC1521 in pure C#.

I've got what you need. What I need is a job, and I'm fed up with employers
telling me I don't have enough dotnet experience. I'm also almost broke so
I'm not all that moved to just give away the fruit of my labours.

Start persuading.
 
Back
Top