5,693,936 members and growing! (16,802 online)
Email Password   helpLost your password?
Web Development » Applications & Tools » Tools with source code     Intermediate

MultiMail 2.0 - Freeware SMTP stress testing tool

By Nishant Sivakumar

This free program can be used to stress test SMTP servers. It also aids anti-Spam tool developers as a useful mail-bombardment tool.
VC7.1, C++Windows, Win2K, WinXPVS.NET2003, Visual Studio, Dev

Posted: 21 Feb 2002
Updated: 3 Oct 2003
Views: 135,166
Bookmarked: 26 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
42 votes for this Article.
Popularity: 6.52 Rating: 4.02 out of 5
2 votes, 8.7%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
5 votes, 21.7%
4
16 votes, 69.6%
5

About MultiMail 2.0

MultiMail 2.0 is a multi-threaded SMTP stress testing program which also doubles up as a handy tool for anti-Spam software development. It starts multiple threads, each sending a large number of mails in parallel to a specified SMTP server. MultiMail 2.0 is  freeware and can be used by anyone without the author's explicit permission.

How it came about?

Version 1.0

I wrote the first version while I was developing my own anti-Spam program Pop 3 Protector (discontinued). I used it to bombard test POP accounts with a large amount of email from multiple fake email addresses and with multiple subject headers.

A few months ago [here the current time is Feb 2002], I was asked to try out three different Linux based SMTP servers and decide on the fastest one. That's when I got a chance to use this tool once again. I sent huge amounts of mail through each server and recorded connection and mail delivery speeds. To increase the load I made the program multi-threaded. The user can set the number of threads to use. In this particular version I have restricted this number to 10, to prevent malicious people from misusing this program. But for anyone who wants to use this as an SMTP stress tester, 10 threads running in parallel, each thread sending 1000 mails each, should be quite good enough.

Actually there is a sneaky way to over-ride the restrictions, which is by running multiple instances of the program. But for some strange reason I have noticed that this will considerably slow down the user's machine and I hope that will deter people from trying it out.

Version 2.0

Version 2.0 uses the ATL7 SMTP and MIME classes and so I have removed all my Winsock-SMTP-chat code from the program. This has enabled me to add support for attachments which is quite handy.

Sending mail using the ATL7 classes

  • Include the required header file
  • #include <atlsmtpconnection.h>
  • Call CoInitialize
  • CoInitialize(0);
  • And write code similar to below snippet
  • CMimeMessage msg;
    
    msg.SetSender(strSender);
    msg.AddRecipient(strRecepient);
    
    //Optional
    
    msg.SetSubject(strSubject);
    msg.AddText(strBody);
    msg.AttachFile(strAttachFile);
    
    CSMTPConnection conn;
    conn.Connect(server);
    BOOL bSuccess = conn.SendMessage(msg);
    conn.Disconnect();
  • Call CoUninitialize
  • CoUninitialize();

History

  • v1.0 - 22 Feb 2002
  • v2.0 - 05 Oct 2003

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Nishant Sivakumar


Sitebuilder, Mvp
Nish is a real nice guy living in Atlanta, who has been coding since 1990, when he was 13 years old. Originally from sunny Trivandrum in India, he recently moved to Atlanta from Toronto and is a little sad that he won't be able to play in snow anymore.

Nish has been a Microsoft Visual C++ MVP since October, 2002 - awfully nice of Microsoft, he thinks. He maintains an MVP tips and tricks web site - www.voidnish.com where you can find a consolidated list of his articles, writings and ideas on VC++, MFC, .NET and C++/CLI. Oh, and you might want to check out his blog on C++/CLI, MFC, .NET and a lot of other stuff - blog.voidnish.com

Nish loves reading Science Fiction, P G Wodehouse and Agatha Christie, and also fancies himself to be a decent writer of sorts. He has authored a romantic comedy Summer Love and Some more Cricket as well as a programming book – Extending MFC applications with the .NET Framework.

Nish's latest book C++/CLI in Action published by Manning Publications is now available for purchase. You can read more about the book on his blog.

Despite his wife's attempts to get him into cooking, his best effort so far has been a badly done omelette. Some day, he hopes to be a good cook, and to cook a tasty dinner for his wife.
Location: United States United States

Other popular Applications & Tools articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 60 (Total in Forum: 60) (Refresh)FirstPrevNext
QuestionSource codememberjnks20057:28 4 Sep '07  
Questionregarding the number of connections establishedmemberlp19821:15 3 Sep '07  
GeneralBig Problem.... with attachmentsmemberdboychuk6910:25 5 Jan '07  
GeneralHi Nish - Help Neededmemberaseef6:45 25 Sep '06  
Generaltwice amount mail..memberDaisuke Ota21:51 16 Jun '06  
GeneralI have problem with MultiMail 2.omemberMalathi Ranjit Singh23:15 22 Jan '06  
GeneralATL CSMTPConnection - Buggysupporterjeff6664:14 14 Nov '05  
GeneralFound a bug with attachment handlingmemberchris_blandford4:29 30 Oct '05  
GeneralNot sending attachmentsmemberjbrown0116:28 23 Nov '03  
GeneralOld version still availibe?memberfaj3:23 28 Oct '03  
GeneralEnhancement for next VersionmemberFrank Carius2:23 15 Oct '03  
GeneralMany other usesmemberGerard Nicol8:21 5 Oct '03  
GeneralRe: Many other usesstaffNishant S8:34 5 Oct '03  
GeneralRe: Many other usesmember| Muhammad Waqas Butt |22:36 11 Sep '07  
GeneralNo support for smtp authentication - intendedstaffNishant S10:23 4 Oct '03  
GeneralPeople who downloaded it before 26th FebmemberNish [BusterBoy]13:37 26 Feb '02  
GeneralThanksmemberJames Pullicino3:58 26 Feb '02  
GeneralRe: ThanksmemberNish [BusterBoy]13:36 26 Feb '02  
GeneralRe: ThanksmemberJames Pullicino22:14 26 Feb '02  
GeneralVolunteers required urgently!!!memberNish [BusterBoy]1:25 24 Feb '02  
GeneralRe: Volunteers required urgently!!!memberAnders Molin1:45 24 Feb '02  
GeneralRe: Volunteers required urgently!!!memberNish [BusterBoy]6:18 24 Feb '02  
GeneralRe: Volunteers required urgently!!!memberAnders Molin1:48 24 Feb '02  
GeneralRe: Volunteers required urgently!!!memberNish [BusterBoy]2:34 24 Feb '02  
GeneralHmmm, buggy, and uselessmemberAnders Molin6:06 23 Feb '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 3 Oct 2003
Editor: Nishant Sivakumar
Copyright 2002 by Nishant Sivakumar
Everything else Copyright © CodeProject, 1999-2008
Web12 | Advertise on the Code Project