Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Email in Outlook über VB erstellen

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte eine EMail mit meinem Standart EMail-Client erstellen. Es sollen alle Felder übergeben werden können.

Solange es sich nur über Empfänger, Betreff und Text handelt ist dies ja kein Thema. Ich möchte aber zusätzlich auch "BB", "BC" und Anlage besetzen können.

Gibt es dafür ein ocx oder ein anderen Trick, der das ermöglicht?


Option Explicit

Private AppOutlook As New Outlook.Application

Private ItemMail As Outlook.MailItem

Private ItemAttachment As Outlook.Attachments


Public Function SendOutlookMail(betreff As String, empfaenger As String, nachricht As String, anhang As String) As Boolean

Dim fehler As Long

On Error Resume Next

    'Versenden einer E-Mail mit Anhang

    'Fehler, falls syntaktisch inkorrekte Adresse

    fehler = 0

    Set ItemMail = AppOutlook.CreateItem(olMailItem)

    Set ItemAttachment = ItemMail.Attachments

    With ItemMail

        .Subject = betreff

        .To = empfaenger

        .Body = nachricht

        ItemAttachment.Add App.Path & anhang

        .Send

    End With

    fehler = Err.Number

    SendOutlookMail = Not (fehler <> 0)

    Set AppOutlook = Nothing

    Set ItemMail = Nothing

    Set ItemAttachment = Nothing

On Error GoTo 0

End Function

Meinst Du sowas?

Nach 20 Minuten googeln kann ich nur den Link hier empfehlen, guck Dir mal die Verarbeitung mit dem MAPI-Steuerelement an.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.