Thanks for all your help folks. I'm still having a couple of problems, though.

First of all, where I do I put the:
VB Code:
  1. Imports System.Web.Mail
I put it in the Form load, but it says it must precede any declarations. Also, for the following:
VB Code:
  1. ' Variable which will send the mail
  2.     Private obj As System.Web.Mail.SmtpMail
  3.  
  4.     'Variable to store the attachments
  5.     Private Attachment As System.Web.Mail.MailAttachment
  6.  
  7.     'Variable to create the message to send
  8.     Private Mailmsg As New System.Web.Mail.MailMessage()
the System.Web.Mail.SmtpMail, System.Web.Mail.MailAttachment, and New System.Web.Mail.MailMessage are not defined. How do I fix this?

Finally, it says that "MailFormat" is not declared. What and where would I declare it as?

Thanks again for the help.