title image


Smiley Re: Outlook-Sicherheitsabfrage??
Aus MSDN:



By default, Outlook prompts users if they want to execute an address book action or send e-mail action that is blocked by Outlook. When Outlook 2002 is used in conjunction with Microsoft Exchange Server, network administrators can customize this default behavior by not blocking any actions, blocking all actions and not prompting the user to unblock, or a combination of both.





und auch





A Practical Security Example

In order for your calls to blocked object model properties and methods to work without the display of the security warning dialog box shown in Figure 2, you must use the secure Outlook Application object returned in the OnConnection event of a COM Add-in, or the Application object in Outlook VBA or in code behind Outlook forms.



Important If you use the New keyword to instantiate another instance of the Outlook Application object, all objects that derive from that Application object and their blocked properties and methods cause the Outlook security warning dialog boxes to appear. Therefore, you may need to update some add-ins.

The VBA code in UnTrustedCode displays the security warning dialog box while the code in TrustedCode uses the trusted Application object and does not display security warnings.



Sub UnTrustedCode()

Dim olApp As New Outlook.Application

Dim oMail As Outlook.MailItem

Set oMail = _

olApp.Session.GetDefaultFolder(olFolderInbox).Items(1)

MsgBox oMail.SenderEmailAddress, vbInformation

End Sub



Sub TrustedCode()

Dim olApp As Outlook.Application

Set olApp = Application

Dim oMail As Outlook.MailItem

Set oMail = _

olApp.Session.GetDefaultFolder(olFolderInbox).Items(1)

MsgBox oMail.SenderEmailAddress, vbInformation

End Sub





Diese Funktion lässt sich nicht einfach umgehen, weil das ganze sonst keinen Sinn hätte. Absicht ist eben zu verhinden, dass fremde Anwendungen unbemerkt Emails schicken. Wenn es so einfach wäre würde jeder Wurm die Warnung einfach ausschalten.
Moderation is OK, but not to excess...



geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: