Click here to Skip to main content
11,568,522 members (42,968 online)
Click here to Skip to main content

MultiMail 2.0 - Freeware SMTP stress testing tool

, 3 Oct 2003 274.3K 8.2K 48
Rate this:
Please Sign up or sign in to vote.
This free program can be used to stress test SMTP servers. It also aids anti-Spam tool developers as a useful mail-bombardment tool.

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 <span class="code-keyword"><atlsmtpconnection.h></span>
  • 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

Share

About the Author

Nish Nishant
United States United States
Nish Nishant is a Software Architect/Consultant based out of Columbus, Ohio. He has over 15 years of software industry experience in various roles including Lead Software Architect, Principal Software Engineer, and Product Manager. Nish is a recipient of the annual Microsoft Visual C++ MVP Award since 2002 (13 consecutive awards as of 2014).

Nish is an industry acknowledged expert in the Microsoft technology stack. He authored
C++/CLI in Action for Manning Publications in 2005, and had previously co-authored
Extending MFC Applications with the .NET Framework for Addison Wesley in 2003. In addition, he has over 140 published technology articles on CodeProject.com and another 250+ blog articles on his
WordPress blog. Nish is vastly experienced in team management, mentoring teams, and directing all stages of software development.

Contact Nish : You can reach Nish on his google email id voidnish.

Website and Blog

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 5 Pin
Member 826594610-Jun-12 14:27
memberMember 826594610-Jun-12 14:27 
QuestionBig thatks Pin
Member 46055868-Mar-12 4:01
memberMember 46055868-Mar-12 4:01 
QuestionSource code Pin
jnks20054-Sep-07 6:28
memberjnks20054-Sep-07 6:28 
Questionregarding the number of connections established Pin
lp19823-Sep-07 0:15
memberlp19823-Sep-07 0:15 
GeneralBig Problem.... with attachments Pin
dboychuk695-Jan-07 9:25
memberdboychuk695-Jan-07 9:25 
GeneralRe: Big Problem.... with attachments Pin
yhaker25-May-10 22:34
memberyhaker25-May-10 22:34 
GeneralHi Nish - Help Needed Pin
aseef25-Sep-06 5:45
memberaseef25-Sep-06 5:45 
Generaltwice amount mail.. Pin
Daisuke Ota16-Jun-06 20:51
memberDaisuke Ota16-Jun-06 20:51 
GeneralI have problem with MultiMail 2.o Pin
Malathi Ranjit Singh22-Jan-06 22:15
memberMalathi Ranjit Singh22-Jan-06 22:15 
GeneralRe: I have problem with MultiMail 2.o Pin
Member 1096674423-Jul-14 8:14
memberMember 1096674423-Jul-14 8:14 
GeneralATL CSMTPConnection - Buggy Pin
jeff66614-Nov-05 3:14
memberjeff66614-Nov-05 3:14 
GeneralFound a bug with attachment handling Pin
chris_blandford30-Oct-05 3:29
memberchris_blandford30-Oct-05 3:29 
GeneralNot sending attachments Pin
jbrown0123-Nov-03 15:28
memberjbrown0123-Nov-03 15:28 
QuestionOld version still availibe? Pin
faj28-Oct-03 2:23
memberfaj28-Oct-03 2:23 
GeneralEnhancement for next Version Pin
Frank Carius15-Oct-03 1:23
memberFrank Carius15-Oct-03 1:23 
GeneralMany other uses Pin
Gerard Nicol5-Oct-03 7:21
memberGerard Nicol5-Oct-03 7:21 
GeneralRe: Many other uses Pin
Nishant S5-Oct-03 7:34
staffNishant S5-Oct-03 7:34 
GeneralRe: Many other uses Pin
| Muhammad Waqas Butt |11-Sep-07 21:36
member| Muhammad Waqas Butt |11-Sep-07 21:36 
How about HTML BASE Email?

|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com

GeneralNo support for smtp authentication - intended Pin
Nishant S4-Oct-03 9:23
staffNishant S4-Oct-03 9:23 
GeneralPeople who downloaded it before 26th Feb Pin
Nish [BusterBoy]26-Feb-02 12:37
memberNish [BusterBoy]26-Feb-02 12:37 
GeneralThanks Pin
James Pullicino26-Feb-02 2:58
memberJames Pullicino26-Feb-02 2:58 
GeneralRe: Thanks Pin
Nish [BusterBoy]26-Feb-02 12:36
memberNish [BusterBoy]26-Feb-02 12:36 
GeneralRe: Thanks Pin
James Pullicino26-Feb-02 21:14
memberJames Pullicino26-Feb-02 21:14 
GeneralVolunteers required urgently!!! Pin
Nish [BusterBoy]24-Feb-02 0:25
memberNish [BusterBoy]24-Feb-02 0:25 
GeneralRe: Volunteers required urgently!!! Pin
Anders Molin24-Feb-02 0:45
memberAnders Molin24-Feb-02 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150624.2 | Last Updated 4 Oct 2003
Article Copyright 2002 by Nish Nishant
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid