Solved

Email - Sending/Recieving With Pop3 & SMTP

Posted on 1999-01-03
14
479 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

751 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