Forums

Gmail SMTP unexpectidly not working

I have a daily scheduled task running which (some days) sends emails using Gmail SMTP. It last worked on December 24:th, but today it does not. Between then and now it has not attempted to send emails.

On:

server = smtplib.SMTP(smtp_server, port)

I get:

OSError: [Errno 101] Network is unreachable

On the page SMTP for free users I read that:

However, we have to hard-code the IP addresses of Google's servers into our firewall, and these sometimes change, which means that, on occasion, Google may switch to a new Gmail server which we don't know about, and that would temporarily block email until we are able to update the firewall.

Is this what has happened in this case?

We'll have a look

It's now working again!

Glad to hear that.