How to Link Sengrid to a Contact Form in Flask to Forward Email

Solution
    def send(self):
        message      = Mail(
        from_email   = APPROVED_SENDGRID_EMAIL,
        to_emails    = 'jonathanbechtel@gmail.com',
        subject      = 'Sample Email Message',
        html_content = f'From: {self.email}
Reason: {self.reason}
Message:{self.message}') # Set the reply-to email message.reply_to(self.email) try: sg = SendGridAPIClient(os.environ.get('SENDGRID_API_KEY')) response = sg.send(message) except Exception as e: print(e)