<s>[INST] from flask_mail import Mail, Message
from flask import Flask

app = Flask(__name__)
app.config['MAIL_SERVER'] = 'smtp.gmail.com'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USE_TLS'] = True
app.config['MAIL_USERNAME'] = 'your-email@gmail.com'
app.config['MAIL_PASSWORD'] = 'your-email-password'

mail = Mail(app)

def send_email(user_email):
    msg = Message("Hello",
                  sender='your-email@gmail.com',
                  recipients=[user_email])
    msg.body = "This is the email body"
    mail.send(msg)

@app.route('/')
def index():
    send_email('recipient-email@gmail.com')
    return 'Email Sent'

if __name__ == '__main__':
    app.run()

This code is supposed to send an email when the '/' route is accessed. However, when I try to run it, I get a "RuntimeError: Working outside of request context" error. How do I fix this?[/INST]