i am created a contact form that will send email to the user but am having this error
this is still my views.py
if request.method == 'POST':
name = request.POST.get('name'),
email = request.POST.get('email'),
subject = request.POST.get('subject'),
message = request.POST.get('message')
print(name,email,subject,message)
contactform = ContactForm(name=name, email=email, subject=subject, message=subject)
contactform.save()
messages.success(request,"Message sent successfully")
send_mail(
f'message :{email}, {subject}', #subject
message, #message
' masteregntility5@gmail.com', #from email
['douglaschiemela@gmail.com'], #To email
fail_silently=False
)
and this is the settings.py
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = '587'
EMAIL_HOST_USER = [os.environ.get("EMAIL_HOST_USE")]
EMAIL_HOST_PASSWORD = [os.environ.get("EMAIL_HOST_PASSWOR")]
EMAIL_USE_TLS = True
please i need help