a wrapper and dependencies for sending email