473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How can I send dummy email????

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.
Nov 16 '05 #1
3 1485

"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.


Why don't you simply send them to yourself?

/Fredrik

Nov 16 '05 #2
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.

Nov 16 '05 #3
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


Nick Malik [Microsoft] wrote:
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.

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jonathan Fine | last post by:
I'd appreciate comments on what I'm doing. Please be kind, I'm a new kid on the block. Here's my application. I'm writing some test code. (I'm a recent convert to unit testing.)
2
by: \Crash\ Dummy | last post by:
I would like to use a form on my web site to e-mail user comments to me. I have ASP capability to run server side scripts. The host domain has a SMTP server, but I don't know if it is on the same...
1
by: nek | last post by:
Greetings, We try to automate database creation via script which gets executed remotely for a number of servers. This works fine for most of the servers. However, it occasionally fails some...
3
by: Mark Miller | last post by:
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...
20
by: newbie | last post by:
Hi all, http://www.aswin.be/nictransfer.JPG How can I get these numbers with VB.NET ? I thought somewhere in WMI but I can't find them. Thank you, Aswin
1
by: markjcostello | last post by:
Hi, I have a service running on my machine that generates continuous stats in xml. I want to constantly reference an xslt file (using <?xml-stylesheet type="text/xsl" href="Test3.xsl"?>) within...
1
by: PraveenKadkol | last post by:
Hi, My question : If my process is taking more than 30 mins to complete, then i need to send out email to all the users. I have two forms, 1 is "Main form" and another is dummy form, dummy...
3
by: Simon Brooke | last post by:
As various people will have noticed, I've been having a lot of trouble with XSL lately. Brief history: I wrote myself an XML toolkit back in 2000, and it worked well enough for me, so it's been...
35
by: erik gartz | last post by:
Hi. I'd like to be able to write a loop such as: for i in range(10): pass but without the i variable. The reason for this is I'm using pylint and it complains about the unused variable i. I can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.