Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calling Outlook Express from VB6 code

Posted on 2007-11-20
2
Medium Priority
?
2,242 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 2000 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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
The purpose of this video is to demonstrate how to use PicMonkey software to customize images for a Mailchimp campaign. Picmonkey is free and simple online software which can be used by users who don’t have robust editing software such as Photoshop,…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

963 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