I need to make form with a textarea and an image upload field. When somebody submit it I want it to send email (with text from textarea)
if (model.Attachment != null && model.Attachment.ContentLength > 0) { foreach (HttpPostedFileBase item in fileUploader) { var attachment = new Attachment(model.Attachment.InputStream, model.Attachment.FileName); mail.Attachments.Add(attachment); } }