Integration of emails with Ruby application