Send your code
# settings.py
# Email Configuration
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com' # Gmail's SMTP server
EMAIL_PORT = 587 # The port for secure TLS connection
EMAIL_USE_TLS = True # Use TLS (Transport Layer Security) to encrypt the connection
EMAIL_HOST_USER = 'youremail@gmail.com' # Your Gmail email address
EMAIL_HOST_PASSWORD = 'yourappspecificpassword' # App-specific password or your Gmail account password
In the python shell:
from django.core.mail import send_mail
send_mail("Hello Friend", "Hello from Django", "myemail@gmail.com", ["clientemail@gmail.com"], fail_silently=False)