Send email when button clicked
2016-08-23
0 0 0
no vote
Other
Earn points
protected void subString()
{
SqlConnection conSplit = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString);
SqlCommand cmdSplit = new SqlCommand("SELECT Password FROM Member WHERE (Username=@username AND Email=@email)", conSplit);
cmdSplit.Parameters.AddWithValue("@username", txtUsername.Text);
cmdSplit.Parameters.AddWithValue("@email", txtEmail.Text);
conSplit.Open();
SqlDataReader dtrSplit = cmdSplit.ExecuteReader();
if (dtrSplit.Read())
finalString = dtrSplit["Password"].ToString().Substring(0, 5);
dtrSplit.Close();
conSplit.Close();
}
protected void sendResetPass()
{
MailMessage mailMessage = new MailMessage();
mailMessage.To.Add(txtEmail.Text);
mailMessage.From = new MailAddress("admin@MSJ.com");
mailMessag
发送
按钮
单击
电子邮件
Related Source Codes
Selectedbutton can set buttons for selecting and p
0
0
no vote
Trap and poison email harvesters
0
0
no vote
Access email by regular phone and send email-trigg
0
0
no vote
clicking All Programs so you don't have to
0
0
no vote
sending private messages to multiple recipients
1
0
no vote
No comment