input: Write a function to create a Celery task that sends an email using Python. The function should take recipient_name, recipient_email, subject, and message as parameters, and it should use the Flask-Mail extension to send the email. If successful, it should return True, otherwise return False.
  assert send_email('John Smith', 'john@example.com', 'Hello World', 'This is a test email.')==True
  assert send_email('Alice Brown', 'alice@example.com', 'Test Subject', 'Testing email send.')==True
  assert send_email('', 'invalid_email@example.com', 'Invalid Test', 'This should fail.')==False
  assert send_email('John Doe', '', 'Empty Recipient', 'This should also fail.')==False
  assert send_email('Jane Smith', None, 'None Type', 'This should fail as well.')==False
output: def send_email(recipient_name, recipient_email, subject, message):
      from flask_mail import Mail, Message
      from flask import Flask
      app = Flask(__name__)
      mail = Mail(app)
      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'
      app.config['MAIL_DEFAULT_SENDER'] = 'your_email@example.com'
  
      if not recipient_name or not recipient_email or not subject or not message:
          return False
  
      try:
          msg = Message(subject, recipients=[recipient_email])
          msg.body = f"Dear {recipient_name},\n\n{message}"
          mail.send(msg)
          return True
      except Exception as e:
          return False