Solved

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

Posted on 2011-03-16
6
325 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

929 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now