input: Write a function to create a Celery task in Python that sends an email with the given recipient's name, email, subject, and message. The function should use Flask-Mail to construct and send the email. If the email is sent successfully, return True, otherwise return False.
  
  assert send_email('John Smith', 'john@example.com', 'Hello World', 'This is a test email.')==True
  assert send_email('Jane Doe', 'jane@example.com', 'Greetings', 'This is another test email.')==True
  assert send_email('Invalid Email', 'invalid', 'Error', 'This should fail.')==False
  assert send_email('', '', '', '')==False
  assert send_email('Test User', 'test@example.com', 'Hello', 'Hello, this is a test.')==True
output: def send_email(name, email, subject, message):
      from flask_mail import Mail, Message
      from flask import Flask
      app = Flask(__name__)
      app.config['MAIL_SERVER'] = 'smtp.example.com'
      app.config['MAIL_PORT'] = 587
      app.config['MAIL_USE_TLS'] = True
      app.config['MAIL_USERNAME'] = 'your_email@example.com'
      app.config['MAIL_PASSWORD'] = 'your_password'
      mail = Mail(app)
      
      try:
          msg = Message(subject, sender='your_email@example.com', recipients=[email])
          msg.body = f"Dear {name},\n\n{message}"
          mail.send(msg)
          return True
      except Exception as e:
          return False