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



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 (https://www.hackster.io/cybermah/trail-camera-e1deff ).

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

I am wondering how to resolve this issue.

closed #2

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