Added action mailer functionalty