hi,
how do we send e-mails from ASP.Net. I tried it this way
" message.From = TextBox1.Text
message.To = TextBox2.Text
message.Cc = TextBox3.Text
message.Bcc = TextBox5.Text
message.Subject = TextBox6.Text
message.Body = TextBox4.Text
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = "smtpserver name"
SmtpMail.Send(m essage)
Response.Flush( )
Label6.Text = "Your email has been sent" "
some of the suggestions that i got was ,your message.From and your smtpserver name should be a valid one. can any one help me by giving some suggestions regarding this.
how do we send e-mails from ASP.Net. I tried it this way
" message.From = TextBox1.Text
message.To = TextBox2.Text
message.Cc = TextBox3.Text
message.Bcc = TextBox5.Text
message.Subject = TextBox6.Text
message.Body = TextBox4.Text
message.BodyFor mat = MailFormat.Html
SmtpMail.SmtpSe rver = "smtpserver name"
SmtpMail.Send(m essage)
Response.Flush( )
Label6.Text = "Your email has been sent" "
some of the suggestions that i got was ,your message.From and your smtpserver name should be a valid one. can any one help me by giving some suggestions regarding this.
Comment