By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,490 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,490 IT Pros & Developers. It's quick & easy.

how to use asp.net page to send an email?

P: n/a
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 =---
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Response.Write "mailto:a@b.com"

"blu3g85" <bl*****@hotmail-dot-com.no-spam.invalid> 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

=---
Nov 18 '05 #2

P: n/a
Here is a link to an excellent FAQ on almost everything you wanted know
about emailing in .Net.

http://www.systemwebmail.com

--
- Paul Glavich
Microsoft MVP - ASP.NET
"blu3g85" <bl*****@hotmail-dot-com.no-spam.invalid> 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

=---
Nov 18 '05 #4

P: n/a
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 =---

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.