Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
| 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 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 August 25th, 2004, 01:45 PM
Authorized User
Join Date: Jun 2003
Location: London, , United Kingdom.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Outlook 2002 - Anti Spammer


Each time I try to send a mail from my Access 2000 database to a recipient via Outlook 2002 a prompt is displayed basically asking for the users permission to allow a program to use the mailbox in this manner. In fact two boxes appear; 1 with how long do you want to grant access, and another for each mail.

With the various issues around concerning people taking over access to your mailbox and sending mail I can understand this is a good security feature. However, how do I supress the prompt being as I'm the authorised user of my own machine; i.e. I have administerative rights to the PC?

Presumably I need to create a new Mail Item for each mail I send?

Here's my code snippet:

    Set objMailItem = olkApp.CreateItem(olMailItem)

    With objMailItem

        '.To = sRecipient
        .To = "803032307" 'for testing purposes send to myself
        .Importance = olImportanceHigh
        .SentOnBehalfOfName = sMailBoxName
        .Subject = sSubject
        .Body = sMsgBody
        .ReadReceiptRequested = True
        .DeleteAfterSubmit = True

    End With

    Set objMailItem = Nothing

Which is in a loop so for each record in the database it sends out a mail.

Hope you can help...


Russ (Programing on L plates..!)

Russ (Programing on L plates..!)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti Virus for Windows 2000 soft4net Windows Server 0 December 29th, 2006 06:05 AM
Frontpage 2002? patwadd Classic ASP Basics 1 February 17th, 2005 07:12 PM
Outlook 2002 - mailing from DB fordrs3 VB How-To 1 August 25th, 2004 01:49 PM
Autonumber on Access 2002 pdunning Access 1 August 23rd, 2004 10:33 AM
CalculateFull in Excel 2002 pagates Excel VBA 1 August 9th, 2003 03:43 PM

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