Email Confirmation |
Answered By
Shanu_Sudha
on
12/11/2009 4:42:44 AM |
|
|
NameSpace:
--------------------
using System.Web.Mail;
In Code Behind:
---------------------
protected void SendEmail()
{
MailMessage mail = new MailMessage();
mail.To = txtEmail.Text;
mail.From = "You Mail ID";
mail.Subject = "New User Registration";
mail.Body = "Welcome you. Your username is " + txtUserName.Text + " and Your password is " + txtPassword.Text + "";
SmtpMail.SmtpServer = "Your Mail Server";
SmtpMail.Send(mail);
Page.RegisterStartupScript("Update", "<script>alert('Mail sent Successfully')</script>");
return;
} |
|
|
Sending Email with Dynamic Contents from Asp.Net |
Answered By
Moderator1
on
12/11/2009 10:17:27 PM |
|
|
Hi,
To embed dynamic contents in your email, you can read our article in the below url,
http://www.aspdotnetcodes.com/Send_Email_Dynamic_Content.aspx |
|
|