Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 9th, 2003, 12:51 PM
Registered User
 
Join Date: Jun 2003
Location: Hollywood, FL, USA.
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


Daniel
vbbeginner@aol.com
Hollywood, FL




Daniel
vbbeginner@aol.com
Reply With Quote
  #2 (permalink)  
Old June 9th, 2003, 04:30 PM
Authorized User
 
Join Date: Jun 2003
Location: Livermore, CA, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 "eshumaker@neopostonline.com"
        .Recipients.Add "mscott@neopostonline.com"
        .Subject = Subject
        .Body = Body
        .Importance = olImportanceHigh
        .Attachments.Add (App.Path + "\FILENAME.TXT")
        .Send
    End With
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.