Solved

VB.NET New OutLook Email - Stop Outlook warnings

Posted on 2008-10-14
3
413 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 70

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Outlook 2010 fail to get past load profile 10 37
Fraud Email 22 76
Need help with another query 10 37
YouTube API get the Video Tags - vb.net 7 29
When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

756 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