MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-MailMessage a question about the list of approved senders

    Scheduled Pinned Locked Moved Utilities
    3 Posts 3 Posters 1.0k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      johanPO
      last edited by sdetweil

      @UncleRoger
      I am trying to get the MMM-MailMessage to work for my mother in law, so that we can easily display messages for her. First Magic Mirror project and I really like it.
      Its not quite there yet for me though
      The download logs shows that emails are downloaded.
      [10.03.2024 11:20.28.332] [LOG] NEUE EMAIL VON…
      | [10.03.2024 11:20.28.552] [LOG] 9 Mails fetched

      The documentation is not 100% clear to me, but that may be me :-)

      Could it be that the commas in the description are at the wrong place and should be outside the curly bracket?

                   validSenders: [ { addr: "dad@mydomain.com",  name: "Dad",   color: "#00ff00", }
                                   { addr: "mom@mydomain.com",  name: "Mom",   color: "#ff0000", }
                                   { addr: "son@mydomain.com",  name: "Billy", }
                                   { addr: "nana@mydomain.com", name: "Nana",  }
                   ],
      

      adding a common outside makes the check go through, but I still do not see anything on the display. I took them away inside and still no messages on the screen.
      What am I doing wrong? (I have obviously replaced the email addresses with valid ones from which I can send test emails:-))

      A S 2 Replies Last reply Reply Quote 0
      • A Offline
        ashna @johanPO
        last edited by

        @johanPO did you manage to find a solution as I too have the same issue

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @johanPO
          last edited by

          @johanPO said in MMM-MailMessage a question about the list of approved senders:

          validSenders: [ { addr: “dad@mydomain.com”, name: “Dad”, color: “#00ff00”, }
          { addr: “mom@mydomain.com”, name: “Mom”, color: “#ff0000”, }
          { addr: “son@mydomain.com”, name: “Billy”, }
          { addr: “nana@mydomain.com”, name: “Nana”, }
          ],

          I don’t KNOW… but this is misconfigured

          validSenders: [

          means a comma separated list of things

          in this case the thing is a sender info object

          { addr: “mom@mydomain.com”, name: “Mom”, color: “#ff0000”, }
          

          so the list would look like

          validSenders: [
                { addr: “mom@mydomain.com”, name: “Mom”, color: “#ff0000” },
                { addr: “son@mydomain.com”, name: “Billy” },
                { addr: “nana@mydomain.com”, name: “Nana” }
          ]
          

          I always try to put the [ and ] on separate lines to make them more visible

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy