app.config.update(
SECRET_KEY=os.getenv('SECRET_KEY', 'secret string'),
MAIL_SERVER=os.getenv('MAIL_SERVER'),
MAIL_PORT=587,
MAIL_USE_TLS =True,
MAIL_USERNAME=os.getenv('MAIL_USERNAME'),
MAIL_PASSWORD=os.getenv('SENDGRID_API_KEY'),
MAIL_DEFAULT_SENDER=('ly', os.getenv('SENDGRID_API_KEY'))
)
SENDGRID_API_KEY=SG.FKvhjacLT9SdrgsPg6d5rA.4aPkOCM7ZRHu931JcgAA5W…
MAIL_USERNAME=apikey
MAIL_SERVER=smtp.sendgrid.net