first draft to send emails via webserver