This is simple method... u can try..
<%@ Page Language="C#" debug="true" %>
<% @Import Namespace="System.Web.Mail" %>
<script runat="server">
void MailtoUser(Object src, EventArgs e)
{
MailMessage objMail= new MailMessage();
objMail.To = "te**@test.com";
objMail.From = "te***@test1.com";
objMail.Subject = "Registration Confirmation";
objMail.Body = " Thanks for your registration with us";
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(objMail);
}
</script>
<html>
<body>
<form runat="server">
<asp:button runat="server" id="mailsend" Text="Click here to send mail"
OnClick="MailtoUser" />
</form>
</body>
</html>
bl*****@hotmail-dot-com.no-spam.invalid (blu3g85) wrote in message news:<40******@127.0.0.1>...
how to use asp.net page to send an email?
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---