Sendgrid attachment

Added functionality for attaching files to emails using sendgrid.