I'm assuming that the user would attach the file from their own computer? If
so, you would need to have a File Upload control on the form, so that when
they submit the form, the file to attach is sent to the server with it.
In the System.Web.Mail namespace you'll find 3 classes:
SmtpMail
MailMessage
MailAttachment
You would create the MailAttachment from the uploaded file, format a
MailMessage instance, add the MailAttachment to the MailMessage's
Attachments Collection, and use the SmtpMail class to send the MailMessage.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"VB Programmer" <xD**********@Dont.com> wrote in message
news:%2********************@TK2MSFTNGP15.phx.gbl.. .
I know how to send emails using ASP.NET. How can I allow the user to
attach a file to an email that they submit (via an ASPX online submission
form)?
Ex: Allow user to submit a resume along with their info.