This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
# Set up your Gmail SMTP credentials | |
sender_email = 'YOUR_EMAIL' | |
sender_password = 'YOUR_PASSWORD' | |
# Set up the email details | |
recipient_email = 'RECIPIENT_EMAIL' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, render_template, request, redirect, session | |
from flask_sqlalchemy import SQLAlchemy | |
from werkzeug.security import generate_password_hash, check_password_hash | |
app = Flask(__name__) | |
app.config['SQLALCHEMY_DATABASE_URI'] = 'your_database_uri_here' # Replace with your database URI | |
app.config['SECRET_KEY'] = 'your_secret_key_here' # Replace with your secret key | |
db = SQLAlchemy(app) | |