?
Solved

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

Posted on 2011-03-16
6
Medium Priority
?
335 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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 stored procedures 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 Micr…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
Suggested Courses

718 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