Solved

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

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

Accepted Solution

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

Author Comment

by:realcoding
Comment Utility
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 74

Expert Comment

by:käµfm³d 👽
Comment Utility
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:realcoding
Comment Utility
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 74

Expert Comment

by:käµfm³d 👽
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There was an incident about the POP3 issue for the double read receipts and delivery receipts in Exchange 2013.  There was huge research been done and found solution for the duplicate mails. Especially when the user gets  duplicate mails.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
In this video we show how to create a mailbox database 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 Servers >> Data…

772 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

10 Experts available now in Live!

Get 1:1 Help Now