Sending mails from a web controller