Added a simpler solution for sending emails.