I have created a function the would send mail to a particular user when redirected to a particular url. It was working until today. However, today when it gets redirected to the
email_msg = EmailMessage(subject="subject", body="content", to=["xyz@gmail.com"]) email_msg.send()
use EmailMassage