call the EmailMultiAlternatives function with, subject, message, from_email, recipient_list and connection set to connection, as arguments, assign the result to mail.
mail = EmailMultiAlternatives ( subject , message , from_email , recipient_list , connection = connection )