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
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 Display Modes
  #1 (permalink)  
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

Folks

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
        .Recipients.ResolveAll
        .Subject = sSubject
        .Body = sMsgBody
        .ReadReceiptRequested = True
        .DeleteAfterSubmit = True
        .Send

    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...


Regards

Russ (Programing on L plates..!)
__________________
Regards

Russ (Programing on L plates..!)
Reply With Quote
Reply


Thread Tools
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
Anti Virus for Windows 2000 soft4net Windows Server 0 December 29th, 2006 05:05 AM
Frontpage 2002? patwadd Classic ASP Basics 1 February 17th, 2005 06: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



All times are GMT -4. The time now is 06:50 PM.


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