May 17, 2006 02:24 PM|hexOffender|LINK
What about attachments? My Web form is e-mailing ok, but when I add an attachment( such as an uploaded Resume), I get an error: Invalid mail attachment ' ' . I know the file is there because I can browse to it on the server after it is uploaded by the user,
and I know the smtp is working because I can get an e-mail without the attachment.
here is the code I am using:
filename = path + "\" + file
temp.Text = filename
mymessage.From = "HR_applicant@work.org"
mymessage.To = "me @work.org"
mymessage.Subject = "New Applicant Information"
mymessage.Priority = MailPriority.High
mymessage.BodyFormat = MailFormat.Text
mymessage.Body = "This is a test"
SmtpMail.SmtpServer = "mail1.work.org"
Could it be a permissions issue ? thats the only thing I can think of, but being an ASP.net newbie, I don't know where to fix it.