Ok, It appears that it just took a long time for me to realize my test message got picked up as Junk Mail, and got filed with the multitude of SPAM I get daily.
Sorry all for the wasted time, Steve On Dec 7, 11:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Yes the code files within App_Code are in a namespace (lets call it > "MyProject"), while the code behind the aspx files do not the simply > utilize various functionality from the namespace. > > Ideally I would like to move ALL mail code to the App_Code directory, > with the eventual goal to compile it separately into a Library used by > the website. > > Thanks, > > Steve > > On Dec 7, 5:13 pm, "Brandon Betances" <[EMAIL PROTECTED]> wrote: > > > Namespace of the App_Code file? > > > On Sun, Dec 7, 2008 at 2:20 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > > > I use the the same code from an aspx page in a different area of the > > > project for a different reason. That code actually sends an email. > > > > I cannot determine the reason that works and the other fails. > > > > Steve > > > > On Dec 5, 6:16 pm, "Brandon Betances" <[EMAIL PROTECTED]> wrote: > > > > try it outside of App_Code. See what happens. > > > > > On Fri, Dec 5, 2008 at 5:40 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED] > > > >wrote: > > > > > > Ok, > > > > > > Strangeness going on here. > > > > > > I am developing a Web App, and have configured the mail settings in > > > > > the webconfig for forgot password functionality and the like. WORKS > > > > > FINE > > > > > > In one page I use System.Net.Mail.SmtpClient to send a password > > > > > changed email. WORKS FINE. > > > > > > In another I do the same thing from a class located in the App_Code > > > > > Directory. DOESNT WORK. > > > > > I am not currently encapsulating the send call in a try > > > > > catch. > > > > > There are no exceptions being thrown. > > > > > There is no email being sent. > > > > > There is nothing in the event viewer of the development > > > > > machine. > > > > > > Does anyone have any idea what is going on here or where to go next > > > > > debugging. > > > > > (I have checked the status of the instance of the newly created > > > > > smtpclient and it appears to have all the correct settings) > > > > > > Thanks in advance, > > > > > > Steve
