Important alert: (current site time 7/16/2013 1:22:08 AM EDT)
 

winzip icon

[ QuickMail ]

Email
Submitted on: 10/6/2004 4:30:15 PM
By: D. Rijmenants  
Level: Beginner
User Rating: By 18 Users
Compatibility: VB 5.0, VB 6.0
Views: 49234
author picture
(About the author)
 
     QuickMail is a ready to use basic mailer, based on winsock, featuring multiple adressing, attachments encoded with base64, winsock statusbar, Contacts list and mailsender information edit. Full error handling. Good code to learn the basic of winsock mailing and the MIME 1.0 mail format. This is an 'upgraded' and rewritten version of my FastMailer submission (deleted). Special Thanks to Alon Gal for the winsock and MIME basics. All comments and suggestions welcom :-)

 
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 28 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 Beginner 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

10/6/2004 11:37:26 PMRuturaj

Try to implement something new ... like Personalizing Email Message automatically.

I mean , get the First Name , Last Name information from database for given Email address. Allow user to put some marker like <#FN#> and so on in their message ; and before you send the mail , replace these markers with concerned data (like <#FN#> with First Name and so on ...)

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

 
10/8/2004 12:57:08 PMWilliam J Matthews

I think it is excellent code. Maybe you can tell me what I'm doing wrong. I'd like to run it on a WIN98SE machine, reg'd the COMDLG32 (no problems) but the mailer doesn't open up. It will run fine on my W2K machine. Thanks.
(If this comment was disrespectful, please report it.)

 
10/8/2004 2:36:42 PMD. Rijmenants

To William: You pointed me to a bug in the program: if you send a mail without spam warning, the text was not included. This bug is now fixed and all works fine now. (by the way, not using the spam warn? You wouldn't want to scare your friends with anonymous mails no?)
(If this comment was disrespectful, please report it.)

 
10/26/2004 7:58:46 AMScorcel

This is so far wonderful!
(If this comment was disrespectful, please report it.)

 
11/21/2004 2:19:35 AM

I'm developing a programme for the local skin diving club and as part of it I want to include an automatic mailer that sends the dive reports to those who request them.I've been searching for weeks to find an open source base64 encoder that can encode Crystal Reports reports correctly ...Congratulations ..... QuickMail has come up with the goods. Thank You
(If this comment was disrespectful, please report it.)

 
1/10/2005 8:32:49 AM

I am wrapping up a quote program for printers and wanted to add email without having to learn everything about Winsock or MApi. Your code is the first of 15 or so that I have tried that worked. Very well done!. Small problem..if I cancel the connect Dialog I can't press send again and have it come the Dialog box appear again to connect to the internet. If I leave QuickMail open and manually start the internet it works fine. Is there another solution. If you don't want to get involved in a Q & A support, I understand.
Regards
Bruce Neil
Australia
(If this comment was disrespectful, please report it.)

 
1/10/2005 12:04:40 PMD. Rijmenants

Hi Bruce, I can't really follow. Cancel which connect dialog ? Please mail me (just click my name)) and specify your problem. Hope I can help you ;-)
(If this comment was disrespectful, please report it.)

 
1/26/2005 12:43:44 PM

mailer is nice ..i like it 10 out of 10
(If this comment was disrespectful, please report it.)

 
1/30/2005 2:57:36 AM

Though this program does look up-to-the-mark, I can't figure out which SMTP server to mention in the options box? I've tried using my own IP address in both the originating IP and SMTP server textbox but it gives an error message 'Failed sending the file: Timeout Error'. My internet connection's also fast. What can the problem be?
(If this comment was disrespectful, please report it.)

 
1/30/2005 3:05:37 AM

Though this program looks up-to-the-mark, I can't figure out what to mention in the SMTP server box. I tried using my own IP address in both the 'originating IP' and 'SMTP server' textboxes but somehow it doesn't work, and gives an error message "Failed sending the message: Timeout error". I also used my own IP addres in the 'originating IP' and used "www.hotmail.com" in the SMTP server box but it doesn't connect, and says "Error: The connection timed out". My internet speed's also fast. Can you explain where I'm blundering?
(If this comment was disrespectful, please report it.)

 
1/30/2005 4:46:23 AMD. Rijmenants

Hi Hassaan, the SMTP server is the adress to send mail through the server. This can be f.i. smtp.skynet.uk ,the incomming mail (not used here) is normally a pop3 adres, here it would be pop.skynet.uk .It has nothing to do with your IP or mailadress, but it's the mail adress of your provider for HIS incoming mail If you use outlook, goto Extra, Accounts, and check the properties of your account (server)
(If this comment was disrespectful, please report it.)

 
2/19/2005 9:53:26 AM

I like the program and all but I can't get it to work! Can ya give me a working example of what to put in the options???? thanks!!
(If this comment was disrespectful, please report it.)

 
2/19/2005 10:40:26 AMD. Rijmenants

All you need is a mail adress (the origin ip can be 0.0.0.0, not important) and your SMTP server (check my comment from two higher ;-)
(If this comment was disrespectful, please report it.)

 
2/20/2005 1:24:25 AM

thanks for the help... I used my e-maila ddress which is catanacio.gmail.com.. put 0.0.0.0 in the Ip then smtp.gmail.com .... it still doesnt work? is there something wrong? thanks!
(If this comment was disrespectful, please report it.)

 
2/20/2005 1:28:41 AM

here's my settings:
e-mail: catanacio@gmail.com
IP: 0.0.0.0
smtp: smtp.gmail.com

I tried sending an e-mail to myself (catanacio@gmail.com).. I didnt receive the mail. Please help, I really wanna get this working. =)

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

 
2/22/2005 10:14:09 PM

Great App. Works Great. Question: I am trying to implement the Winsock1.connect fn. in another app. What I am trying to do is call it several times to send different messages to different email addresses. I know the fn. is automatically triggered once connected, and I am having problems with my Winsock1.connect calls being called before the previous is finished, can I use some sort of wait or sleep, so that the first connect is fininshed before the 2nd begins? Thanks.
(If this comment was disrespectful, please report it.)

 
2/23/2005 12:29:08 PMD. Rijmenants

The Sub Winsock1_DataArrival puts the respons in strResponse (answer depends on sended data). The GetServerResponse function lets the program wait for the correct answer ("600" for end of sending body and "221" after quitting the conn.). All you need to do is write the code so that after sending the body, you keep waiting until the 600 respons returns, than send a quit and continue with the next message. You'll still need a timeout in case the response is taking too long because there's a problem.
(If this comment was disrespectful, please report it.)

 
4/8/2005 4:57:26 AM

how do you code a excel page,where you place submit button and make it work?

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

 
4/8/2005 4:59:06 AM

how to code a page, where you place a submit button.
(If this comment was disrespectful, please report it.)

 
4/8/2005 5:06:14 AMD. Rijmenants

code a exell page??? Do you mean sending an excel page or wat ??
(If this comment was disrespectful, please report it.)

 
4/18/2005 1:48:48 PM

seems very nice code, I tried it
but its not work with me
an error message appears
send main fail, Tmeout
what could be the problem ??
I send to yahoo mail

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

 
4/19/2005 12:29:29 PMD. Rijmenants

Did you have all correct settings? check out my comment here above from 1/30/2005 ;-)
(If this comment was disrespectful, please report it.)

 
4/29/2005 2:35:12 PMMaster Yeoh

Do you have a code on accepting email with attachments? that's the last thing I need on my project, please help me..

Nice codes, I really appreciate it..
(If this comment was disrespectful, please report it.)

 
5/22/2005 8:09:09 AM

Well Just sent you a mail as well.. Guess cant quite fix the timeout error.. Any updates on that would be well appreaciated.
(If this comment was disrespectful, please report it.)

 
9/28/2005 10:40:48 PM

Please help with the timeout error. Why is that happening? Unable to get this to work.
(If this comment was disrespectful, please report it.)

 
10/9/2005 3:40:04 AMSAEED

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

 
1/17/2006 6:15:34 PMMTIG

IMPORTANT: email servers can require authenticated login. Some require you to log into your pop account *first* before sending mail. These are protections against spam. Make sure you are using the correct protocol for your email server. BTW, gmail requires you to log into your pop account before sending mail.
(If this comment was disrespectful, please report it.)

 
2/16/2006 9:53:12 PMDavid Williamson

very nice code, worked well
(If this comment was disrespectful, please report it.)

 
2/24/2006 1:15:21 AMrnsystems@jantar.co.za

Nice interface and good features. Pitty the program doesnt work. It Times out every time, no matter what the settings are.
(If this comment was disrespectful, please report it.)

 
3/14/2006 6:42:05 AMMatt

Hi... This is excellent. Just what I've been looking for. One problem that I am experiencing is that when I run it, the first email I send sends fine, but after that I only get timeouts. I have to restart the app before it will send again. Even then it will only send 1. Any ideas? Awesome app though...
(If this comment was disrespectful, please report it.)

 
4/2/2006 8:02:50 AM??

Very good .. but it's not working with me , i'm trying to send a message to my e-mail adress (hotmail account) with the smtp: mail.hotmail.com .. but when i check out my inbox and the junkbox i find nothing ..
(If this comment was disrespectful, please report it.)

 
5/2/2006 9:08:32 AMMilind Patil

I want to connect multiple VB Client with Java Server. But my problem is that when i create multiple vb clients, all opens multiple ports on the machine which is not applicable if firewall is installed.
Is there any solution for this problem ? OR Can i send and receive data from java application which is running on another PC without using Socket.
(If this comment was disrespectful, please report it.)

 
5/8/2006 7:50:05 AMMiro

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

 
8/20/2006 4:47:27 AMVilasol

It was very useful for my purpose: extract my dinamic IP, from my "pop" smtp server, and send my new IP to my own without login.
(If this comment was disrespectful, please report it.)

 
2/22/2007 2:54:51 PM

what to write in smtp textbox and ip text box please help
(If this comment was disrespectful, please report it.)

 
4/27/2007 2:02:42 PM??

hi..
i've tried hotmail.com - server: mail.hotmail.com mx2.ho... mx3... and mx4 .. I tried lycos.it .. smtp : smtp.lycos.it .. and the same for lycos.co.uk... It doesn't work .. can anyone give a good e-mail website and smtp server of it please .. thanx
(If this comment was disrespectful, please report it.)

 
2/17/2008 5:28:40 AMChohan

Although it says Sending message when i set smtp to smtp.gmail.com

but still time out error ..

tell me somethin usefull
(If this comment was disrespectful, please report it.)

 
4/8/2008 12:09:47 AMGuna Nurwita

i'am happy for ur programs
(If this comment was disrespectful, please report it.)

 
5/6/2008 7:46:05 PMHugo

Your code is very useful for my needs, but i have only one problem, the date of the mail is wrong, it shows me the day of yesterday...

I thought that It was a format date problem but I still have problems. tryng with another formats set the sending date as None.

I'm using spanish setting in Regional Settings

Hope you can help me
(If this comment was disrespectful, please report it.)

 
11/14/2008 12:58:04 AMsri

hi
i have run this code time out error told what to do.smpt servername i give smtp.mail.yahoo.com.pl help me i tried more time but did not work time out error told
(If this comment was disrespectful, please report it.)

 
10/30/2009 1:28:07 AMango

thanks a lot^_^
(If this comment was disrespectful, please report it.)

 
10/30/2009 2:03:07 AMango

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

 
5/19/2011 6:25:10 AMStavros

Very good program. Tended, with many options.
Unfortunately, however, failed to send EMAIL (I think some may have done wrong)
that and downloaded from elsewhere
My computer did not have the file MsWinSck.ocx which downloaded from elsewhere

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

 
5/19/2011 6:26:49 AMStavros

Very good program. Tended, with many options.
Unfortunately, however, failed to send EMAIL (I think some may have done wrong)
that and downloaded from elsewhere
My computer did not have the file MsWinSck.ocx which downloaded from elsewhere
(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.