The problem was the MailMessage in .NET was holding on to the file attachments. I had to do a dispose on the attachment and then it worked.
More Related Contents:
- Opening a text file is passed as a command line parameter [closed]
- Why is Thread.Sleep so harmful
- Random.Next returns always the same values [duplicate]
- How to loop through all enum values in C#? [duplicate]
- Why is a Dictionary “not ordered”?
- How to run a test many times with data read from .csv file (data driving)
- What is the difference between declarative and imperative paradigm in programming?
- EF Code-First One-to-one relationship: Multiplicity is not valid in Role * in relationship
- Very slow compile times on Visual Studio 2005
- Return StreamReader to Beginning
- HttpClient not supporting PostAsJsonAsync method C#
- MVVM in WPF – How to alert ViewModel of changes in Model… or should I?
- How to Compare Flags in C#?
- C# hashcode for array of ints
- PDF Compression with iTextSharp [closed]
- Should I use return/continue statement instead of if-else?
- WPF/C#: Where should I be saving user preferences files?
- How to convert a virtual-key code to a character according to the current keyboard layout?
- Convert.ToInt32() a string with Commas
- Specified key is not a valid size for this algorithm
- Web API optional parameters
- How can I refer to a project from another one in c#?
- Unable to find the requested .Net Framework Data Provider – SQLite
- ComboBox draw image on selected item
- System.web.mvc missing
- C# serialize private class member
- How to get random values from array in C# [duplicate]
- Specify the application base path in ConfigurationBuilder in beta8
- Limit binding updates per second
- Inline property initialisation and trailing comma