Solved

Email - Sending/Recieving With Pop3 & SMTP

Posted on 1999-01-03
14
453 Views
Last Modified: 2013-11-13
Hi,
I need to know how to send and recieve email from a POP3 or SMTP server, without using MAPI.  If you can find a freeware control for me that would do this (with good documentation), that would be fine.  If you can't find a control, please explain how I can send and recieve mail.  It would be helpful also if you explained how to parse the headers - subject, date, from, to, etc.
Thanks!
-Mark
0
Comment
Question by:eversoslightly
14 Comments
 
LVL 1

Author Comment

by:eversoslightly
ID: 1453648
Please use detail in your answer - it is worth 150 points!
I forgot to add this initially - I use VB5 Enterprise Edition.
0
 
LVL 1

Author Comment

by:eversoslightly
ID: 1453649
I now have found one:
(http://www.kiosknet.org/vb/files/samples/16/pop_smtp.zip)
But I found that it did not allow attachments, or files over 64k.  Attachments are a must for me.
0
 

Expert Comment

by:vbklaus
ID: 1453650
Hi, for sending mail I use AspMail. It is a small control that was designed to be used on IIS Active Server Pages, but it also works with VB on any standard computer. A computer with automatic internet connection can send email without using MAPI and without disturbing the user. This OCX can not find the MX host for the recipients domain! But I use another SMTP server (there are many that still do it) for relaying the emails.
If you do not like to do so, you can also buy AspMX to find MX host names.
ASPmail works reliable and easy, like : MyMailserver.FromName ="Klaus"   MyMailserver.Subject = "Testmessage"....
Well, it is quite expensive, about $45 per single license. Their web-site is www.serverobjects.com
When you look around on their web pages (links to other ASP sites), you will also find other free SMTP objects. But I have no experien
0
 

Expert Comment

by:vbklaus
ID: 1453651
Hi, I just rerad you next message: ASP mail can send attachments (UUENCODE or MIME) -Klaus
0
 
LVL 1

Author Comment

by:eversoslightly
ID: 1453652
Both of those are not freeware - there must be documentation or a control for free somewhere on this subject - it is a quite broad concept - Thanks anyway.
0
 

Expert Comment

by:vbklaus
ID: 1453653
SMTP: Then have a look at
'OCX Mail/ASP by Flicks (FREE)
SMTP mail including attachments.
available at http://www.flicks.com/ASPMail/'
or other sources as seen on page
http://www.activeserverpages.com/components/freemail.asp.

The WINSOCK control is part of VB (= free)



0
 
LVL 1

Author Comment

by:eversoslightly
ID: 1453654
I just found another free one, yet still, without attachments:
http://getit.at/freeocxsite/
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:eversoslightly
ID: 1453655
Now the question is, how do I get mail (pop), with attachments?
0
 
LVL 1

Author Comment

by:eversoslightly
ID: 1453656
If you can tell me how to do this with the Winsock control, that would be great too.
0
 
LVL 1

Author Comment

by:eversoslightly
ID: 1453657
For now, to leave the board open, I'm rejecting the answer.  If someone else gives me the rest of the answer, I will still give you points for the help you've given me so far.
0
 

Expert Comment

by:vbklaus
ID: 1453658
When you contact the POP3 server with the WINSOCK control on port 110 and enter RETR [mess.no.]
You will not only receive text, but always also with any attachments. They are part of the message and appear as hundreds of letters (text encoded).
You can find that part of the message from VB (where the encoded binary data begins), when you look for the adequate keywords in the message.
You need to decode these letters to binary data. (I remember DOS ZIP had an option to do such things)
0
 

Expert Comment

by:vbklaus
ID: 1453659
Hello; my first message was truncated. This is my experience with receiving mail with the WINSOCK control of VB: Set it to remote port 110. Connect to the POP3 server and wait for the answer of the remote.
If the first sing is a '+', then you are connected. Then you send the POP3 commands (user Klaus[ENTER]...)(Get the RFC document to find all the POP3 commands). Every time you receive a '+' as the first sign, the command has been executed from the POP3 server.
It has been quite easy to connect and log in. But I had much
trouble with converting: Some (many!) messages are not plain ASCII text,but ISO (get another RFC document) or HTML. You need to take care for the conversion so the received email will look fine ! If it is for another/private purpose, you will not need to care much for that.
The winsock control can also connect to the SMTP port of a server and send messages !
0
 

Expert Comment

by:thespis
ID: 1453660
Just out of morbin curiosity, why are you opposed to using the MAPI?  Thanks...

Terrence
0
 

Accepted Solution

by:
inthrall earned 150 total points
ID: 1453661
The following address is to a freeware control with a sample app. and some documentation.

http://ftp.univie.ac.at/mirror/simtelnet/win95/visbasic/maillite.zip


0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now