Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 16th, 2006, 07:17 AM
Authorized User
 
Join Date: Jun 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ratheesh_param
Default Email a page using asp.net

Hi all,

  Please anyone can help me to send an email in ASP.Net. I need to send a page (after entering some Details on it) as an email.

 Thanks in advance

Regards
Ratheesh

 
Old November 19th, 2006, 07:20 AM
Authorized User
 
Join Date: May 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use system.web.mail for asp.net 1.x or system.net.mail for asp.net 2.0 set the BodyFormat of mailmessage to html as:

MailMessage Message = new MailMessage();
Message.BodyFormat= MailFormat.Html;

and then in message body u can write html for a page to send in the mail message like:
Message.Body = "<html><body>..............</body></html>";

or your can programatically create a new page and attach that page with the mailmessage like:
Message.Attachments= new MailAttachment("C:\\Mial.html");

for more help u can see:

http://www.systemnetmail.com
http://www.systemwebmail.com


Regards,
Rashida
www.akaas.net





Similar Threads
Thread Thread Starter Forum Replies Last Post
Email in ASP.NET Manoj Bisht ASP.NET 1.0 and 1.1 Professional 1 September 28th, 2007 07:57 AM
Sending email from asp page stephens1982 Classic ASP Databases 6 August 25th, 2005 01:05 PM
the email of asp.net calvinpost ASP.NET 1.x and 2.0 Application Design 3 March 28th, 2004 09:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.