![]() |
Web Development »
Applications & Tools »
Applications
Intermediate
Bulk Email Sender & ExtractorBy Amir PournasserianBulk Email Sender & Extractor |
VB, Windows, .NET 1.1, ASP.NET, VS.NET2003, Dev
|
|
Advanced Search |
|
|
|
||||||||||||||||

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).
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.(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)
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!
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
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 |