Send/Read Email using Vb6.0

Posted on 2001-07-20
Last Modified: 2007-12-19
 I want to write a program that will send email to my yahoo and hotmail email account.  How can i do this?

  What i want is when i run the program, i just need to type in user name, password, my email address and receiver email address to send an email.

  For retrieve email, i just need to type in user name and password, then click a button to open a web browser.

  I don't want to use things like POP, SMTP..  is it possible?

 Please give me the coding. Thanks.
Question by:yongyih
LVL 16

Expert Comment

ID: 6304192
Hum, difficult...

Author Comment

ID: 6304239
I know its difficult but i think it's possible because i saw some software can do it.  I just not sure whether VB6.0 can do it or not.

If cannot read the content of email, just read the header of email also acceptable. ^^

If can get the reply from yahoo or hotmail web server and pass the reply to IE or netscape.  May be its easier.

Actually i ask this question in Java already.  Someone reply it but i cannot compile the code sucessfully.
LVL 13

Accepted Solution

samic400 earned 100 total points
ID: 6304513
It can be done because I've written a similiar program in VB. The easiest way is to use the winsock.dll and with a little understanding of the SMTP and POP3 protocols, you can do it!
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.


Author Comment

ID: 6304708
Can you give me the coding?

Author Comment

ID: 6308485
I know can use MAPI control to send/read email but need email software like Microsoft exchange..

Any idea?
LVL 16

Expert Comment

ID: 6310251
Hotmail/Outlook express gives you the chance to configure an account to receive-send mails. There is a library to manage Outlook objects but i don't remember until which version of IE (sure not for 5.5)

Expert Comment

ID: 7529630
It is really easy, just using a combination of a serverside script and MSINET.OCX
you create a form mailer, for example with php
then connect to that url with the message to be sent as a parameter

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Spell Check in VB6 13 114
Passing a Text Box name to a Sub 6 96
Excel Automation VBA 19 74
backup program with robocopy 6 23
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

832 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