Solved

Calling Outlook Express from VB6 code

Posted on 2007-11-20
2
2,234 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Microsoft Outlook is not just an email client but it is full featured Personal Information Manager. But sometimes Outlook gets disconnected and you simply can’t access it. What steps can you perform before calling IT support? In this article we will…
I didn’t use eM Client for long when I decided to swap to Outlook 2016. The reason for the switch is that it started asking for payment to continue some of its services after one month.   The problems I faced when I didn’t pay were:   I was not …
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…
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now