Django mail not sending mail

前端 未结 3 1734
野趣味
野趣味 2021-01-28 07:17

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

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-28 07:48

    email_msg = EmailMessage(subject="subject",
                                         body="content",
                                         to=["xyz@gmail.com"])
    email_msg.send()
    

    use EmailMassage

提交回复
热议问题