I am using the following code for receiving information from users, is it possible to get all the information as a PDF attachment ?
protected void Button1_Click(object sender, EventArgs e)
{
SmtpClient smtpClient = new SmtpClient();
MailMessage message = new MailMessage();
message.To.Add("admin@domain.com");
if (CheckBox1.Checked == true)
{
emailadd.Text = employeenameDropDown.SelectedValue;
message.Bcc.Add(emailadd.Text);
}
message.Subject = "Timesheet " + employeenameDropDown.SelectedItem;
message.IsBodyHtml = true;
message.Body = "<h3>Timesheet</h3>" + System.Environment.NewLine + System.Environment.NewLine + "<br/>";
message.Body += "<b>Name: </b>" + employeenameDropDown.SelectedItem + "<br/>" + "<br/>";
smtpClient.EnableSsl = true;
smtpClient.Send(message);
EmailSentForm.Visible = Visible;
employeenameDropDown.Enabled = false;
Button1.Enabled = false;
}