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


Messages In This Thread
TimeOutError when trying to initiate smtplib.SMTP - by thecosmos - Jun-19-2020, 05:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Send email with smtp without using Mimetext mgallotti 0 719 Feb-01-2023, 04:43 AM
Last Post: mgallotti
  Sending Attachments via smtplib [SOLVED] AlphaInc 3 2,179 Oct-28-2021, 12:39 PM
Last Post: AlphaInc
  Sending random images via smtplib [SOLVED] AlphaInc 0 1,703 Oct-19-2021, 10:10 AM
Last Post: AlphaInc
  [UnicodeEncodeError from smtplib] yoohooos 0 3,405 Sep-25-2021, 04:27 AM
Last Post: yoohooos
  send email smtp rwahdan 0 1,802 Jun-19-2021, 01:28 AM
Last Post: rwahdan
  Understanding The Arguments for SMTPlib - sendmail JoeDainton123 3 2,732 Aug-03-2020, 08:34 AM
Last Post: buran
  SMTP problem MajK 6 3,186 May-09-2020, 07:47 AM
Last Post: MajK
  Sending an email with attachment without using SMTP? PythonNPC 5 3,222 May-05-2020, 07:58 AM
Last Post: PythonNPC
  SMTPlib help tpolim008 4 3,845 Apr-27-2020, 11:11 PM
Last Post: tpolim008
  smtplib: string formatting not carrying over to email ClassicalSoul 1 2,666 Apr-22-2020, 09:58 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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