• Webseitenerstellung und -hosting
  • .NET Anwendungsentwicklung
  • softwaregesteuerte Prozessoptimierung
  • .NET

    Programmierung

  • WebseitenErstellung

    undHosting

  • softwaregesteuerte

    Prozessoptimierung

  • Konzeption

    und Beratung

%AM, %14. %400 %2016 %08:%Jul

Outlook Mail signieren

geschrieben von
Artikel bewerten
(4 Stimmen)

Um eine Mail im Outlook zu signieren war es bisher üblich über die Funktion

CommandBars.FindControl(,719).Execute

den "signieren" Button des MailItem-Ribbons zu betätigen. Auch in der Vergangenheit war es schwierig da man u.U. die Execute Methode 3x aufzurufen (sic!). Nachdem dies ab Office 2013 nicht mehr funktioniert, generell wird die Commandbars Methode nicht mehr unterstützt, musste ich eine Alternative finden. Wie immer in diesem Blog findet man das nicht durch en bisschen Googeln, deshalb hier die Lösung: Die Property PR_SECURITY_FLAGS des aktuellen Mailitems setzen:

 ''' <summary>
    ''' E-Mail Item signieren (Zertifikat)
    ''' </summary>
    ''' <param name="blnSignieren"></param>
    ''' <remarks></remarks>
    Public Shared Sub Nachricht_signieren(blnSignieren As Boolean)
        Try
            Const PR_SECURITY_FLAGS = "http://schemas.microsoft.com/mapi/proptag/0x6E010003"
            Const SECFLAG_NONE = &H0
            Const SECFLAG_SIGNED = &H2
            'Const SECFLAG_ENCRYPTED = &H1

            'Aktuelles Mailitem holen
            Dim actOutItem As Outlook.MailItem
            actOutItem = CType(oOut.ActiveInspector.CurrentItem, Outlook.MailItem)

            'Sign / Unsign
            If Funktionen.isEmailItem(actOutItem) Then
                Dim prop As Long
                prop = CLng(actOutItem.PropertyAccessor.GetProperty(PR_SECURITY_FLAGS))
                actOutItem.PropertyAccessor.SetProperty(PR_SECURITY_FLAGS, If(blnSignieren = True, SECFLAG_SIGNED, SECFLAG_NONE))
            End If

            actOutItem = Nothing

        Catch ex As Exception
            Throw ex
        End Try
    End Sub

eine Auflistung der Properties findet Ihr auf der Webseite https://searchcode.com/codesearch/view/3372596/ bzw. da ich dem Internet nicht traue, ebenfalls als Textdatei im Anhang. Danke. Bitte :-)

Gelesen 84099 mal

2614 Kommentare

  • Kommentar-Link WrvvDeene %AM, %29. %117 %2024 %01:%Okt gepostet von WrvvDeene

    How long does [url=https://healthhublevitr.com/]why is levitra so expensive[/url] on account it is modestly-priced and produces exceptional
    Even though the cause of most hypertension is not known, some people have risk factors that give them a greater chance of getting hypertension.

  • Kommentar-Link WrvvDeene %PM, %28. %864 %2024 %19:%Okt gepostet von WrvvDeene

    prices can be found when you use online pharmacies to [url=https://healthhublevitr.com/]buy original levitra online[/url] pills here are sold below wholesale
    One such condition that more than fifty percent pregnant women experience is finger pain.

  • Kommentar-Link WrvvDeene %PM, %28. %669 %2024 %15:%Okt gepostet von WrvvDeene

    Any time you need a beneficial treatment option, you should [url=https://healthhublevitr.com/]viagra vs levitra vs cialis[/url] .Place them now!
    This advanced stage of HIV is known as AIDS.

  • Kommentar-Link WrvvDeene %PM, %28. %585 %2024 %13:%Okt gepostet von WrvvDeene

    People like to use the Internet to [url=https://healthhublevitr.com/]cheap levitra buy[/url] Read more about erectile dysfunction here.
    That is why the pregnant woman can think she feels pain in the uterus.

  • Kommentar-Link AtlfDeene %PM, %28. %585 %2024 %13:%Okt gepostet von AtlfDeene

    Fix health problems with [url=https://quickrxshop.com/]pharmacy store viagra + cialis spam[/url] that they have been labeled properly.
    Tammy June 30, 2012 at 12:20 pm Reply After suffering several miscarriages I saw a Reproductive Immunologist who tested me for a million possible conditions.

  • Kommentar-Link WrvvDeene %PM, %28. %572 %2024 %12:%Okt gepostet von WrvvDeene

    tay ignorant. [url=https://healthhublevitr.com/]why is levitra so expensive[/url] too?
    It's found in many countries throughout the world and is particularly common in South East Asia, India, the Caribbean, South and Central America, and Africa.

  • Kommentar-Link AtlfDeene %PM, %28. %571 %2024 %12:%Okt gepostet von AtlfDeene

    Excellent prices can be found when you use online discounts to [url=https://quickrxshop.com/]online pharmacy xanax australia[/url] . Find out how it affects you.
    After a general surgeon removes a breast tumor and the surrounding breast tissue mastectomy , a plastic surgeon may reconstruct the breast.

  • Kommentar-Link AtlfDeene %AM, %28. %541 %2024 %11:%Okt gepostet von AtlfDeene

    providersPreventing errors is your responsibility when you [url=https://quickrxshop.com/]cialis tesco pharmacy[/url] at cheap prices after comparing offers
    Molecularly targeted therapy for malignant glioma.

  • Kommentar-Link WrvvDeene %AM, %28. %540 %2024 %11:%Okt gepostet von WrvvDeene

    Review prices and buy [url=https://healthhublevitr.com/]online levitra cheap[/url] after you compare online offerings
    She had too much gas eating it, so I switched to another brand.

  • Kommentar-Link ArnfDeene %AM, %03. %288 %2024 %05:%Okt gepostet von ArnfDeene

    Painful aching in the legs and joints myalgias and arthralgias—severe pain that gives it the nick-name break-bone fever or bonecrusher disease occurs during the first hours of illness.
    Choose authentic online pharmacies any time you intend to what is tadalafil generic for at the lowest prices anywhere on the net offered on this site
    Other symptoms of HIV include:Get testedYou cannot rely on symptoms to know whether you have HIV.

Schreibe einen Kommentar

Bitte achten Sie darauf, alle Felder mit Stern * zu füllen. HTML-Code ist nicht erlaubt.