I've run into the same thing.
We haven't implemented the solution yet, but our plan is to create a class
that derives from MailMessage but which actually sends the mail to a small
app that will decide what to do with it, based on whether the source app is
in test or not.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Mark Miller" <ma*********@discussions.microsoft.com> wrote in message
news:Oa*************@TK2MSFTNGP15.phx.gbl...
Hi,
I am writing a program that will send emails to our customer. During test
I don't want to send real emails. Is there a way to send it to an SMTP
server so that it does not actually forward them to the actual recipients.