def send_bot_email(subject, message, emails): # send email c = ses.connect_to_region('us-east-1', aws_access_key_id=app.config['AWS_KEY'], aws_secret_access_key=app.config['AWS_SECRET']) return c.send_email('*****@*****.**', subject, message, emails, html_body=models.parse_raw(message))
def preview(): html = models.parse_raw(request.form['content']) return html