sindhu murali Posted March 11, 2016 Posted March 11, 2016 Hi all, Got struck when running the below script. Please share inputs on this,it will be very useful. CODE: import sysimport smtplibfrom smtplib import SMTP server = smtplib.SMTP('smtp.gmail.com', 587)server.starttls()server.login("from@gmail.com", "pwd")msg = "YOUR MESSAGE!"server.sendmail("from@gmail.com", "to@gmail.com", msg)server.quit() ERROR: Traceback (most recent call last): File "Spotfire.Dxp.Application.ScriptSupport", line unknown, in ExecuteForDebugging File "", line 2, in ImportError: No module named smtplib
Nawaz Ali Mohammad Posted August 23, 2019 Posted August 23, 2019 By default smtplib module is not present in Spotfire Python standard libraries. You can deploy custom python modules using below reference and use them in scripts: https://community.spotfire.com/wiki/how-deploy-custom-python-modules-use-ti...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now