Forum Moderators: open

Message Too Old, No Replies

Sending html email in asp.net

as attachment or in email body

         

Jimmy Turnip

8:46 am on Jun 4, 2004 (gmt 0)

10+ Year Member



I'm looking to send a dynamically generated asp.net page as either an email attachment or in the body of an html email like when you send an article to a friend.

Could anyone point me in the right direction of either a good tutorial or what I need to be searching for? Thanks.

korkus2000

1:11 pm on Jun 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to look at the System.Web.Mail namespace:
[msdn.microsoft.com...]

The MailAttachment Class will do what you want:
[msdn.microsoft.com...]

These new classes have really made email creation easier.

Jimmy Turnip

1:21 pm on Jun 4, 2004 (gmt 0)

10+ Year Member



Wow, it really is very simple, thanks. My problem was that I needed to stream the html from a dynamic aspx page too, but I found a good tutorial so if anyone else needs it:

[devhood.com...]