February 13th, 2009, 03:11 PM #1
- Join Date
- Feb 2009
Send email through Visual Basic 6.0
Hello everybody. I'm wondering how you can make a code on Visual Basic where you click the command button and Outlook Express pops up to a new message.
If anybody has a solution or has an idea that I could test out, please let me know.
February 21st, 2009, 05:32 AM #2
- Join Date
- Feb 2009
sorry but what code does Visual Basic use exactly? Coz i use VB 6.0 at school and wonder if it has ANY significant purpose to learning it, as in it using the same language as a program that actually DOES something USEFUL.
February 24th, 2009, 10:52 AM #3
You need to use the Outlook automation libraries from MS. they can be found here, along with some sample code from MS themselves.
How to automate Outlook by using Visual Basic
From what I understand, these libraries are good for COM extensions for Outlook and Outlook automation. A general format for what will happen is thus:
1) Your VB code will open an instance of outlook in the background
2) Send a command via the interop(in the link above) to open a new message.
3) You type your message and send.
4) Upon exit from new message, automation takes over and closes outlook and saves your data.
Having worked with Outlook and Word interops before, they can be a little buggy if not implemented properly. Unfortunately, thats all I know about this kind of stuff. Wish I could give you some code!
@9800GTX - VB is immensely useful. Great scripting language for us IT folk. And it teaches basic programming concepts as well!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Paluccie in forum Webmastering and ProgrammingReplies: 3Last Post: March 21st, 2007, 02:47 PM
By Altis 1 in forum Webmastering and ProgrammingReplies: 3Last Post: June 3rd, 2005, 08:52 AM
By darssus in forum Webmastering and ProgrammingReplies: 1Last Post: October 6th, 2004, 01:40 PM
By Paluccie in forum Webmastering and ProgrammingReplies: 32Last Post: December 16th, 2002, 07:09 PM
By kickzum in forum General Tech DiscussionReplies: 22Last Post: August 18th, 2002, 12:52 PM