Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete email attachment
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Delete email attachment
Miscellaneous
Thread ID:
01213491
Message ID:
01213491
Views:
52
Hi All,

I am trying to delete an email attachment (pdf document) right after an email was successfully send and getting the following error message:

The process cannot access the file (filename) because it is being used by another process.
          If File.Exists(strName) Then
                MessageBox.Show("File found: " + strName)
                Try
                    File.Delete(strName)
                Catch ex As Exception
                    MessageBox.Show(ex.Message)
                End Try

            End If
Any ideas?
Thank you,
Daniel
Reply
Map
View

Click here to load this message in the networking platform