Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send a feeback results to required user and an email to user

Status
Not open for further replies.

csdewan

MIS
Apr 11, 2005
16
GB
Hi all,

i have created a feeback from and get it to send the results to the required person via

Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage
mailMessage.From = EmailBox.Text
mailMessage.To = "your@email.com"
mailMessage.Subject = "Request"
mailMessage.Body = mailMessage.Body & "<b>DROP</b><hr> " & DropDownList1.SelectedItem.Text & " Title: " & TextBox1.Text & " First Name: " & TextBox2.Text & " Last Name: " & TextBox3.Text & " Email: " & EmailBox.Text
mailMessage.BodyFormat = System.Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "server01
System.Web.Mail.SmtpMail.Send(mailMessage)

I would like the feedback form to send the results to the required person and also an email to the user confirming their request has been sent. Any ideas how I could do this I am using a Try, catch, end try on the submit button with the System.Web.Mail.MailMessage.

Any help would be great.

Thanks
 
What is it you are having trouble with? You know how to send an email as you have done it in your example above, so why can't you just send another email to the user using the same method as per the above?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
thanks thought i had to do something else to get it to do that. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top