Send Email - zamaniamin/python GitHub Wiki
# settings.py
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
# Send email function
from django.core.email import send_mail
send_mail(
subject = "A new post has been created",
messsage = "Go to the web site to see the detail",
from_email = "[email protected]",
recipient_list = ["[email protected]"]
)