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 ).
_ conn.sendmail(sender, destination, msg.as_string())_
I am wondering how to resolve this issue.