This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/tests/scripts/addgooglemail.sh
Simon Stürz 40b91f4dbd created cusom mail notification
changed googlemail plugin to mail notification plugin
2014-05-01 21:02:16 +02:00

8 lines
307 B
Bash
Executable File

#!/bin/bash
if [ -z $2 ]; then
echo "usage: $0 host user password sendTo"
else
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{3869884a-1592-4b8f-84a7-994be18ff555}","deviceParams":{"user":"'$2'", "password":"'$3'", "recipient":"'$4'"}}}'; sleep 1) | nc $1 1234
fi