473,327 Members | 2,065 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,327 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 21 '05 #1
3 1170

"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 21 '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 21 '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 21 '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.)
9
by: Bryan Ashby | last post by:
All, I'm looking for a way to define a "dummy" variable in JavaScript; specifically for the window object. I would like to define a window object that would normally be generated with...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.