added automatic message functionality using sendgrid