sometime i got
Traceback '(most recent call last):
File "main.py", line 45, in <module>
server.sendmail(sender, receiver, msg.as_string())
File "/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/smtplib.py", line 899, in sendmail
raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'example@gmail.com': (550, b'The mail server could not deliver mail to example@gmail.com. The account\nor domain may not exist, they may be blacklisted, or missing the proper dns\nentries.')}'
and script get stopped i need to know if there solution to continue after any error
with smtplib.SMTP(smtpsv, port) as server:
server.starttls() # Secure the connection
server.login(user, password)
server.sendmail(sender, receiver, msg.as_string())
print(" + {}: {} sent succeffully".format(count, line.strip()))