Important alert: (current site time 7/16/2013 3:49:55 AM EDT)
 

winzip icon

AutoMailer

Email
Submitted on: 2/11/2000
By: roy  
Level: Intermediate
User Rating: By 19 Users
Compatibility: VB 5.0, VB 6.0
Views: 43250
 
     A.K.A. The Spam-o-matic. This app uses the Microsoft MAPI Controls 6.0. You must be running Outlook for this code to work. I originally used it as an automatic remailer for a web site. It has been modified to use an Access database to store e-mail addresses of 'recipients'. The program will only mail ONE message per user as is. This is great for mass mailings. Or code can be modified to mail multiple messages to a single address. Please, only do this to friends who will appreciate it! Code uses a timer so mail is sent by default only once every 10 seconds. If you're at work I would recommend NOT lowering the timer. Any questions, e-mail me. Please don't ask for new features. I will post bug fixes as necessary. --Please rate me if you like this code, it will encourage me to upload more neat apps.--
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
2/11/2000 3:54:31 PMmadwhit

this rocks!!!
(If this comment was disrespectful, please report it.)

 
4/24/2000 12:34:41 PMTony

This works really nice. How about converting it to an NT Service?
(If this comment was disrespectful, please report it.)

 
4/24/2000 1:51:22 PMroy

Sure. That's a great idea Tony. I just don't have the time right now. If anyone has made any improvements, please email a copy to me.
(If this comment was disrespectful, please report it.)

 
4/24/2000 3:47:56 PMmagic

When running from VB 5.0 I get the following error:
User-Defined type not defined.
It highlites the
Dim cn as ADODB.Connection line???

Also, how can I mass-mail a txt file
using your code??

This looks like it might be good if I can update program and could mass-mail
the contence of a txt file.


(If this comment was disrespectful, please report it.)

 
4/24/2000 4:58:56 PMroy

Magic. You need to get the latest version of ADO from Microsoft. Go to Microsoft's web-site and download mdac_typ.exe. This contains updates for all of Microsoft's data access components.

As for mass mailing a text file. Attach it to the message, extract the contents into the body of the message, or just hard code the contents.
(If this comment was disrespectful, please report it.)

 
5/18/2000 6:38:22 PMKevin

And the rating is.....Excellent.
(If this comment was disrespectful, please report it.)

 
8/16/2000 12:21:45 AMdkho

Excellent application, but how do I attach more than one files in my message? TQ
(If this comment was disrespectful, please report it.)

 
9/8/2000 4:07:14 PMThe MilkMan

Great code! Thanks
(If this comment was disrespectful, please report it.)

 
6/27/2002 12:29:14 PMJohn

says no requests as an error. Whats up?
(If this comment was disrespectful, please report it.)

 
8/5/2002 10:35:45 PMcrisjr

your code helped me a lot. thanks. kno what. our attendance system is being monitored by e-mailing to a server.
(If this comment was disrespectful, please report it.)

 
1/6/2003 3:06:14 PM

Simple and works good. But all the mails created stay in my Outlook OutBox. How can I automaticaly send them to the server ? I use a cable conection. Thanks
(If this comment was disrespectful, please report it.)

 
1/18/2003 7:22:11 AMIrfan ul Haq Farooqi

Nice work dear. But I need a little help. I'm working on an e-mail project and I want to use MAPI Controles but I don't want Outlook or MS Exchange server to bother my application. I mean I want my application to communicate with any POP3 Server independently. Is it possible and if it is then please guide me. It'll be very nice of you.

My e-mail address is nofi@programmer.net
(If this comment was disrespectful, please report it.)

 
2/8/2003 7:51:36 AM

Excellent code ! I am using VB6 and Outlook *EXPRESS* 6.0. When the "mapMess.Send False" is run, I get a confirmation box. ANy ideas how to get rid of that ? Thanks and nice work !
(If this comment was disrespectful, please report it.)

 
3/19/2003 12:56:35 PM

Excellent code. How do I send the message in HTML format ?
(If this comment was disrespectful, please report it.)

 
12/1/2003 8:34:03 AM

if you have the most up to date patches installed on your office applications this code will no longer work!
(If this comment was disrespectful, please report it.)

 
3/22/2004 8:09:01 AMmike payne

Things like this should never be made.
(If this comment was disrespectful, please report it.)

 
12/3/2004 2:56:27 AM

I have been using your code.
What I like most is that it worked right from the start, no problems.

Just a question, any ideas how I could change the code in order to send formatted mails (i.e. colour, bold etc.)

Thanks.
(If this comment was disrespectful, please report it.)

 
3/29/2005 10:38:24 AM



This is a great app. simple and very efficient.

Thanks
(If this comment was disrespectful, please report it.)

 
9/16/2008 3:01:40 PMmathprof

I get the message mail sent, but it appears that it wasn't. I get an unspecified error. How does the code know to use what server?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.