Fix mail test send endpoint

Closes #3071
-Refactor api.mail.sendTest to take a "to:" parameter.
-Inject recipient address into the mail api's sendTest method
 from the route handler.
Merge pull request #3129 from jaswilli/issue-3071

Fix mail test send endpoint