The crux of Amazon’s personal voice-assistant Alexa and
the companion hardware the Amazon Echo is that she’s always
there listening and ready to help but that doesn’t mean that you
always want Alexa listening and at the ready.
I send some data to the server using ajax and I receive 2
variables, success and error, depending on if the mail was sent or
not. How do I listen to them with ajax and how do I alert them and is
the php code correct?