Solved

VB.NET New OutLook Email - Stop Outlook warnings

Posted on 2008-10-14
3
408 Views
Last Modified: 2008-10-24
I am trying to create an outlook email from my VB.NET Forms application.  When I try to I get an warning from outlook asking if I want to allow the program to access my email program.  Is there a way to stop this warning?

This is what I put together for the new email creation:

    If lblemail.Text <> String.Empty Then
            Dim oApp As Microsoft.Office.Interop.Outlook.Application = New Microsoft.Office.Interop.Outlook.Application
            Dim oEmail As Microsoft.Office.Interop.Outlook.MailItem = oApp.CreateItem(OlItemType.olMailItem)
            oApp.CreateItem(OlItemType.olMailItem)
            oEmail.Recipients.Add(lblemail.Text)
            Employeeemail = oEmail.SenderEmailAddress
        End If
0
Comment
Question by:logoncom
3 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22713715
Hello logoncom,

That is an Outlook security measure implemened starting in Outlook 2000 SP2, and persisting
at least through 2002 and 2003.

To disable it, I've used three products:

1) Express ClickYes
http://www.contextmagic.com/express-clickyes/
There is a free version and a Pro version for ~$30 with more features.  I've used the pro version.
It works as advertised.  I'm not using it currently.  I'm using the MAPILab product instead.

2) MAPILab Advanced Outlook Security
http://www.mapilab.com/outlook/security/
A free COM add-in for Outlook.  I am using it now and I like it

3) Redemption
http://www.dimastr.com/redemption/
A DLL you can use in your code to disable the warnings.  Free download, but you must pay a
license to distribute.  I've used it and like it.


Regards,

Patrick
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 22714116
you better use System.Net.Mail if you can. see http://www.emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx
0
 

Author Comment

by:logoncom
ID: 22720654
I'm also having the same issue when I schedule outlook tasks through my program... so system.net.mail will not solve all my problems.  I will look into the other downloads unless there is another way for task assigments with outlook.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now