Click here to Skip to main content
6,635,885 members and growing! (16,681 online)
Email Password   helpLost your password?
Web Development » Applications & Tools » Applications     Intermediate

Bulk Email Sender & Extractor

By Amir Pournasserian

Bulk Email Sender & Extractor
VB, Windows, .NET 1.1, ASP.NET, VS.NET2003, Dev
Posted:24 Feb 2004
Views:115,426
Bookmarked:49 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
30 votes for this article.
Popularity: 4.23 Rating: 2.86 out of 5
12 votes, 40.0%
1
3 votes, 10.0%
2
2 votes, 6.7%
3
6 votes, 20.0%
4
7 votes, 23.3%
5

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


Member
Tajan System Co.
Amir Pournasserian

Occupation: Web Developer
Location: Iran, Islamic Republic Of Iran, Islamic Republic Of

Other popular Applications & Tools articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Layout  Per page   
 Msgs 1 to 16 of 16 (Total in Forum: 16) (Refresh)FirstPrevNext
GeneralHelp plz plz plz Pinmemberghazalhina10:13 14 Jul '09  
Generalhello Pinmembermohsen nourian6:17 20 Apr '09  
Questionc# version ? Pinmemberdesmat9914:04 2 Nov '05  
GeneralCould not access 'CDO.Message' object. Pinmemberhemachaudhry23:08 28 Jul '05  
Generaldb Pinmemberpaul.g.delanoit@wellsfargo.com10:40 15 Jun '05  
GeneralRe: db Pinmemberhemachaudhry22:47 28 Jul '05  
GeneralHTML Pinmemberian_842:45 17 Nov '04  
Generalsalam PinmemberdSolariuM5:03 18 Oct '04  
GeneralRe: salam PinmemberAmir Pournasserian7:12 18 Oct '04  
Generalcan't get it to work Pinmembermackbest0:17 20 Aug '04  
GeneralRe: can't get it to work PinsussAnonymous3:17 30 Sep '04  
GeneralRe: can't get it to work Pinmemberahpeeyem20:45 1 Nov '04  
GeneralRe: can't get it to work PinsussAnonymous9:46 17 Mar '05  
GeneralRe: can't get it to work Pinmemberhemachaudhry22:44 28 Jul '05  
GeneralSo you're the guy Pinmembercoderforrent.com15:57 2 May '04  
GeneralSPAMMER Pinmemberabhadresh16:36 2 May '04  

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

PermaLink | Privacy | Terms of Use
Last Updated: 24 Feb 2004
Editor: Nishant Sivakumar
Copyright 2004 by Amir Pournasserian
Everything else Copyright © CodeProject, 1999-2009
Web20 | Advertise on the Code Project