I'm attempting to run a script provided by ESRI that's used by as part of the Citizen Problem Reporter app to send email notifications via python and the Send Emails Tool.
I ran it in Jupyter Notebook, but it couldn't find the send_email module.
from send_email import EmailServer
ModuleNotFoundError: No module named 'send_email'
Can I download the module and install it from somewhere?
Solved! Go to Solution.
Jared... The script servicefunctions.py imports sendemail
from send_email import EmailServer
So I am not sure how it is all set up, but perhaps you might have to contact the authors or start and issue on GitHub if ho one follows here.
It might be worth while looking at the open or closed issues to see if there is something similar
Issues · Esri/crowdsource-reporter-scripts · GitHub
Good luck
found it here
crowdsource-reporter-scripts/send_email.py at master · Esri/crowdsource-reporter-scripts · GitHub
in
EmailServer is a class there-in
A copy of the script (assuming it is the same and current) to the folder where you are running your other script will allow for importing
Hi Dan,
Thanks for the info. "send_email" isn't a module but a separate script included in the ServiceSupport zip folder of the ServiceFunctions toolbox. It's accessible in this document: https://www.esri.com/content/dam/esrisites/en-us/media/pdf/learn-arcgis/configuring-citizen-problem-...
The script I was running was servicefunctions.py found in the same folder as send_email.py.
Jared... The script servicefunctions.py imports sendemail
from send_email import EmailServer
So I am not sure how it is all set up, but perhaps you might have to contact the authors or start and issue on GitHub if ho one follows here.
It might be worth while looking at the open or closed issues to see if there is something similar
Issues · Esri/crowdsource-reporter-scripts · GitHub
Good luck