Unable to send email using PPP- Temporary failure in name resolution

Hi

I get the following message when I try to send email using PPP persistent connection and sendgrid SMTPserver.

[Errno -3] Temporary failure in name resolution

The example code is taken from emailreport.py (Trail Camera - Hackster.io ).

conn.login(USERNAME, PASSWORD)
_ try:_
_ conn.sendmail(sender, destination, msg.as_string())_
_ finally:_
_ conn.quit()_

I am wondering how to resolve this issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.