Click here to Skip to main content
Licence 
First Posted 24 Feb 2004
Views 140,166
Downloads 4,857
Bookmarked 57 times

Bulk Email Sender & Extractor

By | 24 Feb 2004 | Article
Bulk Email Sender & Extractor

Introduction

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!

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

Amir Pournasserian

Web Developer

Iran (Islamic Republic Of) Iran (Islamic Republic Of)

Member

Tajan System Co.
Amir Pournasserian


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Layout  Per page   
  Refresh
Questionplease provide me C# code of this emailer. PinmemberMember 83753903:25 4 Nov '11  
GeneralMy vote of 5 Pinmemberdigjam94220:21 29 Mar '11  
GeneralNot working... PinmemberSandeep Mewara6:46 23 Jan '10  
GeneralHelp plz plz plz Pinmemberghazalhina9:13 14 Jul '09  
Generalhello Pinmembermohsen nourian5:17 20 Apr '09  
Questionc# version ? Pinmemberdesmat9913:04 2 Nov '05  
GeneralCould not access 'CDO.Message' object. Pinmemberhemachaudhry22:08 28 Jul '05  
Generaldb Pinmemberpaul.g.delanoit@wellsfargo.com9:40 15 Jun '05  
GeneralRe: db Pinmemberhemachaudhry21:47 28 Jul '05  
GeneralHTML Pinmemberian_841:45 17 Nov '04  
Generalsalam PinmemberdSolariuM4:03 18 Oct '04  
GeneralRe: salam PinmemberAmir Pournasserian6:12 18 Oct '04  
Generalcan't get it to work Pinmembermackbest23:17 19 Aug '04  
GeneralRe: can't get it to work PinsussAnonymous2:17 30 Sep '04  
GeneralRe: can't get it to work Pinmemberahpeeyem19:45 1 Nov '04  
GeneralRe: can't get it to work PinsussAnonymous8:46 17 Mar '05  
Hey send the software to me through my email address and I will make it work and send you the directive on how to go about it. ok.
 
send it to pascaldeanstore@yahoo.com
 
thanks.
 
Operation Manager.
Pascal Dean.
GeneralRe: can't get it to work Pinmemberhemachaudhry21:44 28 Jul '05  
GeneralSo you're the guy Pinmembercoderforrent.com14:57 2 May '04  
GeneralSPAMMER Pinmemberabhadresh15:36 2 May '04  

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.

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