Closes #223 - consolidated send_email functions, created API method.