Used a server side method to send emails.