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 March 12th, 2006, 10:57 PM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB6 Outlook help

 Hello all.. Since my last project was not the style that suits these forums, I decided to continue..

I am writing my own email client - And i'm wondering if there is a way to send the email without outlook giving me a prompt.. I've tried MAPI, and it's just too much. I've looked into SMTP, and jsut couldn't get it working..

Here is what I have at the moment:

Set ol = CreateObject("Outlook.Application")
Set Mail = ol.CreateItem(0)
Mail.to = "[email protected]"
Mail.Subject = "Testing"
Mail.Body = "txtEmail.text"
Mail.Send

I have the main interface with a textbox "txtEmail" , and a "send!" button that performs the above.

When I run it like this, It prompts me with "A Program is Trying to send an Email on your behalf! Do you want to allow this?" Yes - No

Also, when I run it this way, even if I hit "yes" on the prompt, I do not recieve an email to that email address (my email obviously, for testing).

I don't want that message to appear, I dont' want to have to verify everytime, (because eventually, I will be working on my own Messenger program, just for fun).

If there is just a .hide, or .message = false command I could add, I would greatly appreciate it if anyone could help me out on this one...

Thanks..

glyphed

 
Old March 13th, 2006, 02:11 PM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone?

 
Old March 21st, 2006, 05:26 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

send me an example that how can i use microsoft forms 2.0 objet library on visual basic 6.0

 
Old March 21st, 2006, 07:00 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna
Default

Hi !

  I think you should set property of the outlook..

  just go to Tools Menu of outlook then go to Options, then go to Security Tab and then Uncheck the CheckBox which shows 'Warm me when other applications try to send mail as me.'

   I think it will solve your problem.

DPK..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook jdhock8865 Beginning VB 6 3 July 9th, 2008 12:01 PM
Using Outlook JAnthony Access VBA 0 May 18th, 2006 03:13 PM
Outlook Help ksrmramu Classic ASP Components 0 August 22nd, 2005 07:28 AM
Export Messages from Outlook Express using VB6 ANVAR VB How-To 0 April 13th, 2005 06:14 AM
Outlook dinkelfwat Pro VB 6 0 August 20th, 2003 08:19 AM





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