Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Email Adapter Fehlerbehandlung

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Email Adapter Fehlerbehandlung

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      arniworx last edited by

      hi!
      ich habe eine frage zur fehlerbehandlung des email adapters.
      ich würde dem aufruf gerne eine callback funktion mitgeben ... weiss aber nicht wie.

      sendTo("email", { from: "ich@selbst.de",   to: "du@selbst.de",  subject: "Test",  text: "Moin" });
      

      oder

      sendTo("email.0", "send", { from: "ich@selbst.de",   to: "du@selbst.de",  subject: "Test",  text: "Moin" }, function() { log("erfolg oder nicht")}; );
      

      geht alles nicht. die mail wird verschickt, aber die callback funktion im 2. beispiel wird nicht aufgerufen.
      weiss jemand wie das geht?
      greetz
      arni

      A paul53 2 Replies Last reply Reply Quote 0
      • A
        arniworx @arniworx last edited by

        niemand?

        Gargano 1 Reply Last reply Reply Quote 0
        • Gargano
          Gargano @arniworx last edited by

          @arniworx Probier mal

          sendTo("email.0", "send", { from: "ich@selbst.de", to: "du@selbst.de", subject: "Test", text: "Moin" }, function(res) { 
          if(res.error) {
                  log(res.error,"warn"); // {string} error
              } else {
                  log('result: ' + JSON.stringify(res.result)); // Rückgabeabhängig von der API Funktion. Hier {object}
              }
              });; 
          
          
          

          Doku hierzu :
          Link Text

          1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @arniworx last edited by

            @arniworx sagte: mail wird verschickt, aber die callback funktion im 2. beispiel wird nicht aufgerufen.

            Gerade getestet: Die Callback-Funktion wird tatsächlich nicht aufgerufen.

            A 1 Reply Last reply Reply Quote 0
            • A
              arniworx @paul53 last edited by

              @paul53
              bin ich der erste, der das gemerkt hat?

              paul53 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @arniworx last edited by

                @arniworx sagte: bin ich der erste, der das gemerkt hat?

                Anscheinend ja.

                A 1 Reply Last reply Reply Quote 0
                • A
                  arniworx @paul53 last edited by

                  @paul53
                  und wie läuft sowas jetzt? kann man da irgendwo eine offizielle anfrage stellen?

                  wendy2702 paul53 2 Replies Last reply Reply Quote 0
                  • wendy2702
                    wendy2702 @arniworx last edited by

                    @arniworx Github Issue beim Adapter aufmachen wäre der beste weg.

                    A 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @arniworx last edited by

                      @arniworx sagte: kann man da irgendwo eine offizielle anfrage stellen?

                      Issue auf Github erstellen.

                      1 Reply Last reply Reply Quote 0
                      • A
                        arniworx @wendy2702 last edited by

                        @wendy2702
                        probier ich mal.
                        vielleicht liest hier aber auch irgendjemand mit 😉

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          arniworx @arniworx last edited by

                          danke euch beiden

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          394
                          Online

                          31.8k
                          Users

                          80.0k
                          Topics

                          1.3m
                          Posts

                          4
                          11
                          319
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo