Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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 April 1st, 2007, 06:37 AM
Authorized User
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default e mail using vb6

can anyone tell me how can i send emails from vb6 using an existing outlook template...
i m working on a project in which i have to send emails to all the clients regularly...
n a point to be noted that the clients may or may not have outlook installed in their pc
 
Old April 2nd, 2007, 07:10 AM
Authorized User
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have found the reply...


Dim ox As New Outlook.Application
Dim omailitem As MailItem

Set omailitem = ox.CreateItemFromTemplate("c:\test.oft")
omailitem.BodyFormat = olFormatHTML
omailitem.Subject = "test from outlook"
omailitem.Recipients.Add "[email protected]"
omailitem.Send
 
Old April 2nd, 2007, 07:11 AM
Authorized User
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

but now i need to know whether the user can use this application if he does not have outlook installed in his pc.....





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
send mail in vb6 raju0544 Beginning VB 6 1 April 23rd, 2008 10:51 PM
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM





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