change options[email] to options[to] in JSON