Python Forum
TimeOutError when trying to initiate smtplib.SMTP
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TimeOutError when trying to initiate smtplib.SMTP
#1
So I am try to make SMTP connection to a host received by MX query of its domain. But when I do
smtplib.SMTP('aspmx.l.google.com')
or even
smtplib.SMTP_SSL('aspmx.l.google.com')
, it raises following TimeOutError.

TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
I am trying hard to figure out what could go wrong. I have even tried doing this on my cloud VPS instances but its still the same.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sending email using own smtp server robertkwild 11 6,862 Jul-05-2024, 12:59 AM
Last Post: AdamHensley
  smtplib send email has no timestamp Pedroski55 2 1,840 Jun-11-2024, 04:57 AM
Last Post: Pedroski55
  Send email with smtp without using Mimetext mgallotti 0 1,288 Feb-01-2023, 04:43 AM
Last Post: mgallotti
  Sending Attachments via smtplib [SOLVED] AlphaInc 3 10,064 Oct-28-2021, 12:39 PM
Last Post: AlphaInc
  Sending random images via smtplib [SOLVED] AlphaInc 0 2,398 Oct-19-2021, 10:10 AM
Last Post: AlphaInc
  [UnicodeEncodeError from smtplib] yoohooos 0 4,515 Sep-25-2021, 04:27 AM
Last Post: yoohooos
  send email smtp rwahdan 0 2,391 Jun-19-2021, 01:28 AM
Last Post: rwahdan
  Understanding The Arguments for SMTPlib - sendmail JoeDainton123 3 3,951 Aug-03-2020, 08:34 AM
Last Post: buran
  SMTP problem MajK 6 4,499 May-09-2020, 07:47 AM
Last Post: MajK
  Sending an email with attachment without using SMTP? PythonNPC 5 4,893 May-05-2020, 07:58 AM
Last Post: PythonNPC

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020