App is running locally where it is intended to send an email notification using smtp server
Will share the snippet and the requirement.txt below:
2FA is not enabled in xyz@gmail.com
After click submit button
Pls help me out here
import streamlit as st
import smtplib
from email.mime.text import MIMEText
st.title(‘Send Streamlit SMTP Email ’)
st.markdown(“”" Enter your email, subject, and email body then hit send to receive an email from abc@gmail.com!
“”")
Hey @Madhusudan, it’d be great if you could format your post using a codeblock for the entire app You can do it by using following construct:
```
<your code>
```
To the actual question, it’s a little bit difficult to reason about this but maybe the login to the server is just hanging or so? Stucking in the running-state usually means that the script did not finish running from top to bottom and is stuck somewhere, e.g. in an endless loop or maybe here in a network call that does not return.
It might make sense to rule out any Streamlit-related issues by trying your script as a pure Python script before and make sure that sending an email works.