We're starting to use the Crowdsource platform for citizen requests, but many of the employees where I work are used to receiving emails when a citizen request comes in. I tried using this script to do this, but I'm receiving an error message that I'm unsure of what it means or how to fix it.
Error message:
Traceback (most recent call last):
File "C:\Users\james\Desktop\Pothole Email.py", line 33, in <module>
smtpObj.sendmail(FROM, TO, message)
File "C:\Python27\ArcGIS10.5\lib\smtplib.py", line 735, in sendmail
self.rset()
File "C:\Python27\ArcGIS10.5\lib\smtplib.py", line 469, in rset
return self.docmd("rset")
File "C:\Python27\ArcGIS10.5\lib\smtplib.py", line 394, in docmd
return self.getreply()
File "C:\Python27\ArcGIS10.5\lib\smtplib.py", line 368, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
Any suggestions? Thank you!