Solved

Calling Outlook Express from VB6 code

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding extra inboxes 6 29
A domain user account constantly getting locked out. 25 343
Issue to mail 11 97
Ethical Phishing 4 44
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…
If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
The purpose of this video is to demonstrate how to set up a Mailchimp Template which will let the user create a uniform look for all of their campaigns. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mail…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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