Use django.core.mail.send_mail instead of custom function