Thanks for all your help folks. I'm still having a couple of problems, though.
First of all, where I do I put the:
I put it in the Form load, but it says it must precede any declarations. Also, for the following:
VB Code:
' Variable which will send the mail
Private obj As System.Web.Mail.SmtpMail
'Variable to store the attachments
Private Attachment As System.Web.Mail.MailAttachment
'Variable to create the message to send
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.