You are here:About>Computing & Technology>Visual Basic
About.comVisual Basic
How to Send and Receive EMail in VB
Question: How do I use VB to send and receive email?
 Join the Discussion
Add to the FAQ!
Discuss this at the About.Com Forum
Discuss this at the About.Com Forum
 
 Related Resources
• A VB MAPI Program Example
(but see the note in the article about it)
• SMTP Explained
• Microsoft Explains Outlook Objects
 

The easiest way to do this is probably to use the Microsoft MAPI control.

This DevArticles tutorial (with downloadable source code) rushes through an explanation of MAPI. A lot of detail is left out but it's quick and easy to try it out.

Beware, however, there is a bug in the program that prevents the Forward and Back button from working correctly. A quick fix on the bug is to add this declaration in the Declarations section of the program:

Dim lposition

Sending Email With MAPI Components in Visual Basic

At a lower level, you need to know about SMTP, the Simple Mail Transfer Protocol.

Here's an article about that ...

Winsock and SMTP Explained

And, finally, from the Mother of all Mysteries: Microsoft - Here's an article explaining the objects available with Outlook.

Objects in Microsoft Outlook by Microsoft

From Dan Mabbutt,
Your Guide to Visual Basic.
FREE Newsletter. Sign Up Now!
Newsletters & RSSEmail to a friendSubmit to Digg
 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.