Click here to Skip to main content
13,352,428 members (39,532 online)
Click here to Skip to main content
Add your own
alternative version


63 bookmarked
Posted 24 Feb 2004

Bulk Email Sender & Extractor

, 24 Feb 2004
Rate this:
Please Sign up or sign in to vote.
Bulk Email Sender & Extractor


I use this code to collect related emails & send newsletters to my customers. I don't use it to send Junk mails to others, so I do not know about the filtering for different mail servers and these kind of usages. I also use it to extract emails from a complex text file (containing email addresses and other texts).

Using the code

There are two parts: first gathering and collecting email addresses in database and the second is sending email. For extracting emails easily copy the text containing emails & paste in to the textbox AddBulkEmail.aspx. It will extract and save email addresses to the MailingList.mdb file. After that, in Default.aspx I send my emails to the addresses.

Before using, set the web.config file. I set 4 variables in web.config:

  • SMTPServerName is the name of the mail server which you are working with.
  • SampleEmailAddress is the email address which you send sample email for testing and checking the content of your email before sending to the others.
  • UDLPath is the address of the file which includes the connection string.
  • MatchExpression, there is no need to change it, I placed it here because I thought may be some times I want to change the filtering for extracting emails; and easily I change the web.config file.

    In the main.udl file set your physical path for MailingList.mdb.

(The name of application which I tested in my local machine is http://localhost/emailer, so you may need to create it in your IIS)

Points of Interest

I think it needs an automated un-subscriber at the end of every mail which I send to unsubscribe users from my mailing list. I also do not know if there is any problem in sending email to unknown people!


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

Amir Pournasserian
President Momentaj Inc.
Canada Canada
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralHTML Pin
ian_8417-Nov-04 2:45
memberian_8417-Nov-04 2:45 
Generalsalam Pin
dSolariuM18-Oct-04 5:03
memberdSolariuM18-Oct-04 5:03 
GeneralRe: salam Pin
Amir Pournasserian18-Oct-04 7:12
memberAmir Pournasserian18-Oct-04 7:12 
Generalcan't get it to work Pin
mackbest20-Aug-04 0:17
membermackbest20-Aug-04 0:17 
GeneralRe: can't get it to work Pin
Anonymous30-Sep-04 3:17
sussAnonymous30-Sep-04 3:17 
GeneralRe: can't get it to work Pin
ahpeeyem1-Nov-04 20:45
memberahpeeyem1-Nov-04 20:45 
GeneralRe: can't get it to work Pin
Anonymous17-Mar-05 9:46
sussAnonymous17-Mar-05 9:46 
GeneralRe: can't get it to work Pin
hemachaudhry28-Jul-05 22:44
memberhemachaudhry28-Jul-05 22:44 
GeneralSo you're the guy Pin
coderforrent.com2-May-04 15:57
membercoderforrent.com2-May-04 15:57 
GeneralSPAMMER Pin
abhadresh2-May-04 16:36
memberabhadresh2-May-04 16:36 

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

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

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.180111.1 | Last Updated 25 Feb 2004
Article Copyright 2004 by Amir Pournasserian
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid