How can I send dummy email????

  • Thread starter Thread starter Mark Miller
  • Start date Start date
M

Mark Miller

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.
 
Mark Miller said:
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.

Why don't you simply send them to yourself?

/Fredrik
 
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.
 
Try the DevNull SMTP server at http://aboutmydns.com. This is a very
nice SMTP server that you can use for testing. It accepts emails but
deletes them as they come in
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top