Hello,
I've setup my app to send an email on a button click. My code as below for when the button is clicked:
MailMessage email = new MailMessage();
email.To.Add(TextBoxTo.Text);
email.Subject = TextBoxSubject.Text;
email.Body = TextBoxBody.Text;
SmtpClient smtp = new SmtpClient();
try {
smtp.Send(email);
} catch (Exception ex)
{
throw new Exception(ex.Message, ex);
}
I'd like to be able to select some information from my database and store this in some kind of table and include this in the body of the e-mail. I know I can set the body to be html so how would I select information from my database and store in possibly a html table?
...
Go to the complete details ...