ok, u have to upload the file to the server first...
Dim file1 As String = System.IO.Path.Combine(System.IO.Path.GetTempPath, System.IO.Path.GetFileName(dialog1.Value))
dialog1.PostedFile().SaveAs(file1)
mailattachment1= new mail.mailattachment(file1)
Ok, so i'm doing vb.net web page and i am sending an email via smtp. All works fine. Then i added an html control for file dialog and it works fine if i choose say "c:\test.doc"
however, if i choose say "c:\documents and settings\desktop\Nicholasp27\test.doc" then it gives an "invalid mail...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.