Solved

Calling Outlook Express from VB6 code

Posted on 2007-11-20
2
2,239 Views
Last Modified: 2012-08-14
I have an application developed by VB6 and I need to call Outlook Express from it contains the data on my form to be sed it through the email.

thanks

Mostafa
0
Comment
Question by:Mostafa_ElSadek
[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
2 Comments
 
LVL 5

Expert Comment

by:pavaneeshkumar
ID: 20318344
use the code below.

You also need to add the reference for Microsoft Outlook XX.X Object library

where xx.x denote the version of outlook u are using.
Dim oa As New Outlook.Application
Dim msg As Outlook.MailItem
Set msg = oa.CreateItem(olMailItem)
msg.To = "receiver@mail.com"
msg.Body = "message"
msg.Send

Open in new window

0
 
LVL 17

Accepted Solution

by:
Shanmuga Sundaram earned 500 total points
ID: 20318532
There are numerous codes available in the net to send mail from outlook/outlook express. Usually these codes will send mail with the help of default mail clients.

http://www.freevbcode.com/ShowCode.Asp?ID=5213
http://www.freevbcode.com/ShowCode.Asp?ID=159
http://www.a1vbcode.com/snippet-2307.asp
http://www.a1vbcode.com/snippet-92.asp
http://www.a1vbcode.com/snippet-92.asp
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

MS outlook is a premier email client that enable you to send and receive the e-mails with various file formats of attachments such as document files, media file, and many others formats. There is some scenario occurs when a receiver of an e-mail mes…
Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
The purpose of this video is to demonstrate how to set up an account with Mailchimp. This will be demonstrated using a Windows 8 PC. Tools Used are: Mailchimp.com Go to Mailchimp.com : Enter an Email, Username, and Password. Click Create My Acco…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

734 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