Wrox Programmer Forums
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 9th, 2003, 12:51 PM
Registered User
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual Basic 6.0

Hello Everyone

Please I need help. I am writing an small application in Visual Basic 6.0. The Application creates a text files that must be attached to the email and send it to a company via email.

Missing Tasks:

-- I need to know which components or references I need to use in my program to manipulate the email

-- Any examples how to write emails in Visual Basic 6.0 and how to attach the text file

-- Sometimes the user does not have the browser open.Therefore, how can I detect through Visual Basic if the Browser is open or not

Thanks to all for your time

[email protected]
Hollywood, FL

[email protected]
Old June 9th, 2003, 04:30 PM
Authorized User
Join Date: Jun 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts

Add a reference to the Microsoft Outlook library, then add this code.
    Set OutLookApp = CreateObject("Outlook.Application")
    Set OutLookMessage = OutLookApp.CreateItem(olMailItem)
    With OutLookMessage
        .Recipients.Add "[email protected]"
        .Recipients.Add "[email protected]"
        .Subject = Subject
        .Body = Body
        .Importance = olImportanceHigh
        .Attachments.Add (App.Path + "\FILENAME.TXT")
    End With

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic monika.vasvani VB Databases Basics 5 June 16th, 2014 10:01 AM
visual basic 6.0 flowertear Pro VB 6 3 June 28th, 2013 03:16 PM
visual basic khandangoll Beginning VB 6 1 October 6th, 2006 04:05 PM
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM
Visual Basic and Unicode Bill_Thompson Beginning VB 6 1 January 27th, 2006 05:24 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.