Read the statement by Michael Teeuw here.
MMM-MailMessage a question about the list of approved senders
-
@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 fetchedThe 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:-)) -
@johanPO did you manage to find a solution as I too have the same issue
-
@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