5,696,038 members and growing! (11,363 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, .NET, ASP.NET, Visual Studio, VS.NET2003, Dev

Posted: 24 Feb 2004
Updated: 24 Feb 2004
Views: 99,654
Bookmarked: 38 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
29 votes for this Article.
Popularity: 4.16 Rating: 2.84 out of 5
12 votes, 41.4%
1
3 votes, 10.3%
2
2 votes, 6.9%
3
5 votes, 17.2%
4
7 votes, 24.1%
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


Tajan System Co.
Amir Pournasserian

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

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 Search Search Messages 
 Layout  Per page   
 Msgs 1 to 15 of 15 (Total in Forum: 15) (Refresh)FirstPrevNext
Questionc# version ?memberdesmat9914:04 2 Nov '05  
General$100 a day!!sussChristopher Kent Allanic17:05 18 Sep '05  
GeneralCould not access 'CDO.Message' object.memberhemachaudhry23:08 28 Jul '05  
Generaldbmemberpaul.g.delanoit@wellsfargo.com10:40 15 Jun '05  
GeneralRe: dbmemberhemachaudhry22:47 28 Jul '05  
GeneralHTMLmemberian_842:45 17 Nov '04  
GeneralsalammemberdSolariuM5:03 18 Oct '04  
GeneralRe: salammemberAmir Pournasserian7:12 18 Oct '04  
Generalcan't get it to workmembermackbest0:17 20 Aug '04  
GeneralRe: can't get it to worksussAnonymous3:17 30 Sep '04  
GeneralRe: can't get it to workmemberahpeeyem20:45 1 Nov '04  
GeneralRe: can't get it to worksussAnonymous9:46 17 Mar '05  
GeneralRe: can't get it to workmemberhemachaudhry22:44 28 Jul '05  
GeneralSo you're the guymembercoderforrent.com15:57 2 May '04  
GeneralSPAMMERmemberabhadresh16: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-2008
Web17 | Advertise on the Code Project