input: def send_email_task(recipient_name: str, recipient_email: str, subject: str, message: str) -> bool:
      """Create a Celery task to send an email.
      The task should initialize a Celery app and a Message object, set the necessary
      details (subject, sender, recipients), and send the email.
      >>> send_email_task('John Smith', 'john@example.com', 'Hello World', 'This is a test email.')
      True
      """
output:     from celery import Celery
      from celery.utils.log import get_task_logger
      from email.message import EmailMessage
      import smtplib
  
      app = Celery('tasks', broker='pyamqp://guest@localhost//')
      logger = get_task_logger(__name__)
  
      @app.task
      def send_email(recipient_name, recipient_email, subject, message):
          msg = EmailMessage()
          msg['Subject'] = subject
          msg['From'] = 'sender@example.com'
          msg['To'] = recipient_email
          msg.set_content(f"Dear {recipient_name},\n\n{message}")
  
          try:
              with smtplib.SMTP('smtp.example.com') as server:
                  server.send_message(msg)
              logger.info(f"Email sent to {recipient_name} at {recipient_email}")
              return True
          except Exception as e:
              logger.error(f"Failed to send email: {e}")
              return False
  
      return send_email.delay(recipient_name, recipient_email, subject, message) is not None