TimeoutError at

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')
        contactform = ContactForm(name=name, email=email, subject=subject, message=subject)
        messages.success(request,"Message sent successfully")
            f'message :{email}, {subject}', #subject
            message, #message
           ' masteregntility5@gmail.com', #from email
            ['douglaschiemela@gmail.com'], #To email

and this is the settings.py

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = '587'
EMAIL_HOST_USER = [os.environ.get("EMAIL_HOST_USE")]


please i need help

Check your system and whatever is connecting you to the rest of the internet to ensure that port 587 isn’t blocked.

Also, you might want to create a small test script that runs in python (without Django) using the smtp library to verify that your system is capable (at the system level) of sending emails through to gmail. (Something like that is going to be a lot easier to test and validate than having to keep trying things through Django.)

ok thanks sir its working

its just network issure… but now the mail didnt pass through