Added method for sending emails.