#if DEBUG
mailMessage = new MailMessage("someEmail.com", "someEmail.com", subject, messsageBody);
#else
mailMessage = new MailMessage(Membership.GetUser().Email, cppAccount.Email, subject, messsageBody);
#endif
I have the above code but even when I publish on release it still uses the debug statement. This is an mvc4 c# project and this code is in one of my model classes.