Testing a .exe by directly running it is different than running it under the ASP.NET process account. I'd say you have a security problem, and probably the .exe is swallowing the exception. Have you tried logging EVERY exception that could happen? By the way, why don't you use System.Web.Mail?
Dig Deeper on ASP.NET development best practices
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ...continue reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers.continue reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.