안녕하세요 다른 것들을 할 Outlook을 사용하는 프로젝트에서 일하고 있습니다. 그 중 하나는 전자 메일에 액세스하고이를 사용하는 것입니다. 아래의 코드는 내가 이메일Vb.net Outlook 보안 문제
Dim oApp As Outlook.Application = New Outlook.Application()
' Get Mapi NameSpace.
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("mapi")
' Get Messages collection of Inbox.
Dim oInbox As Outlook.MAPIFolder =
oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
Dim oItems As Outlook.Items = oInbox.Items
oItems.Sort("[ReceivedTime]", True)
' oItems = oItems.Sort("date", False)
' Loop each unread message.
Dim oMsg As Outlook.MailItem
Dim i As Integer = 0
For Each item As Object In oItems
Try
If (TypeOf item Is Outlook.MailItem) Then
If i <= 100 Then
oMsg = item
Dim subject1 As String
Dim receivetime As String
Dim sender As String
Dim con As String
con = oMsg.Body
sender = oMsg.SenderName
subject1 = oMsg.Subject
receivetime = oMsg.ReceivedTime
End If
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
i = i + 1
Next
이 코드는 전망 적 보안 시간을 여행하고 난 코드를 찾고 그게 트립되지 않고 그 레지스트리를 편집 포함하지 않거나 회전을 얻기 위해 사용하고있는 코드입니다 내 전망 보안 설정을 다운. 시간 내 주셔서 감사합니다.
Outlook이나 레지스트리의 설정을 명시 적으로 허용하지 않는 한 이메일에 액세스하는 임의의 프로그램이 * 빨간색 플래그를 표시하지 않으면 놀랄 것입니다. A와 B 대신 C와 D 명령을 사용하여 보안 경고를 무시할 수 있다면 어떻게 될지 생각해보십시오. 전자 메일 계정은 더 이상 사용자 계정이 아닙니다. – cHao
참고 :보고있는 보안 기능은 http://msdn.microsoft.com/en-us/library/office/bb226711.aspx#section4126에 나와있는 보안 기능과 비슷합니까? 그렇다면 해당 페이지에 도움이되는 정보가 있습니다. 또한 Tools/Trust Center 아래에서 다양한 설정을 확인하십시오. – cHao