Solved

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

Posted on 2011-03-16
6
327 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

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.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 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