all groups > asp.net > june 2003 >
You're in the

asp.net

group:

How can I email the page


How can I email the page Mike John
6/30/2003 5:21:08 PM
asp.net: how can I execute "send page" method that is under Tools
then mail and news in the tool bar.

is any way to execute that method from aspx web form.

So, if there is such a method , how can I control the To:
text box, so I can pass the email address from within my
code.

Sincerely yours

Re: How can I email the page Steve C. Orr, MCSD
6/30/2003 5:36:28 PM
Just output some HTML, something like this:
Response.Write("<a href='mailto:Steve@Orr.net'>")

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net


[quoted text, click to view]

Re: How can I email the page Steve C. Orr, MCSD
6/30/2003 5:39:14 PM
Oh, maybe I misunderstood in my other response.
Maybe you want to send the whole page as an email to somebody.
You can use the WebRequest and MailMessage classes for this functionality.
Here are a couple examples you could use for this:

http://www.aspalliance.com/stevesmith/articles/dotnetemailwebsite.asp

http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net


[quoted text, click to view]

AddThis Social Bookmark Button