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
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