<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_security_email(data):
 """Celery task to send security email. :param data: Contains the email data. """

    msg = Message()
    msg.__dict__.update(data)
    current_app.extensions['mail'].send(msg)