Solved

How can I send smtp message in rapid succession to benchmark my smtp parser?

Posted on 2011-03-16
6
328 Views
Last Modified: 2012-05-11
i have a smtp listener that i used this free tool to unit test because i am not so hot with command line and telnet.

is there a tool (multi-threaded maybe) i can use to send loads of smtp messages to test and benchmark my listener app?
0
Comment
Question by:realcoding
  • 3
  • 3
6 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 35153784
Have you looked into the System.Net.Mail.SmtpClient class?
0
 

Author Comment

by:realcoding
ID: 35156143
kaufmed: i thought that without an SMTP server it would not send mail.

since i dont have an SMTP server, i want something to crank out smtp messages to my server running my listener over port 8000.
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35156602
The SMTP class will send its data using the SMTP protocol to whatever server and port you tell it to. For example, have a look at this question where I wrote a crude SMTP listener and then used the SMTP class to send mail to it:

    http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_26871171.html#35095384
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:realcoding
ID: 35158463
kaufmed: than ks that was my question and the sample is working very well. I found that if i send a bad message the listener just dies and subsequent sends dont have the port open anymore.

the sample is great in taking a single message but i need it to run 24/7 and take multiple messages. i have been pointed to multi-threading this now. what do you think about that?
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35159802
LOL. I didn't realize you were the same person! Sorry about that.

My MT-fu is not that strong, so I'm hesitant to provide you with an example. I'll think about it, though, and see if I can work it out  = )
0
 

Author Closing Comment

by:realcoding
ID: 35160805
i couldn't find an app for this so i made a multi threaded app to spam the listener. i made the listener multi threaded using an threadpool and it is able to eat 20,000 mails being sent from 2 locations concurrently. now to devise a way to get that info to a SQL table without creating a huge bottle neck.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question