JBHF's picture
Create JB_README.txt
0332308 verified
EVERNOTE :
https://www.evernote.com/shard/s313/nl/41973486/80906fa4-f829-e2eb-cffb-b910b9a128dc/
QUERIES FOR THE โ€œNon-Toxic Glaze Advisorโ€ APP
EN
https://www.evernote.com/shard/s313/nl/41973486/b326b41d-1a5b-e5a9-1b87-6a852f08be59/
KOPIE - QUERIES FOR THE โ€œNon-Toxic Glaze Advisorโ€ APP - Kopie
07-04-2024
06-04-2024
05-04-2024
04-04-2024
24-03-2024
23-03-2024
---
QUERIES FOR THE โ€œNon-Toxic Glaze Advisorโ€ APP https://huggingface.co/spaces/JBHF/NonToxicGlazeAdvisor_Chat_with_Docs_Groq_Edition_1 VICTOR BENCKHUIJSEN EVERNOTE : https://www.evernote.com/shard/s313/nl/41973486/80906fa4-f829-e2eb-cffb-b910b9a128dc/ 04-04-2024
โ€ฆ
07-04-2024
STREAMLIT - Send email with SMTP and Gmail address - โ˜๏ธ Community Cloud - Streamlit
https://discuss.streamlit.io/t/send-email-with-smtp-and-gmail-address/48145
โ€ฆ
Developer Relations @Streamlit
1
Jul 2023
Can you share your requirements.txtfile?
It should be like this to work:
```
streamlit
sendgrid
Pillow
```
Hereโ€™s the example app I built for the demo. Try entering your email, subject, and body then send it to yourself to test. Hereโ€™s the repo 104as well.
Try generating a new email following the instructions from my previous post regardless of if you donโ€™t have 2FA enabled.
โ€ฆ
tonykipkemboi/streamlit-smtp-test: Demo of sending SMTP email using Streamlit app
https://github.com/tonykipkemboi/streamlit-smtp-test
tonykipkemboi/streamlit-smtp-testPublic
Demo of sending SMTP email using Streamlit app
License
MIT license
2stars 1fork BranchesTagsActivity
- Code
- Issues1
- Pull requests
tonykipkemboi/streamlit-smtp-test
Folders and files
Name
Latest commit
https://github.com/tonykipkemboi
tonykipkemboi
5 months ago
History
.gitignore
9 months ago
LICENSE
9 months ago
README.md
5 months ago
requirements.txt
9 months ago
streamlit_app.py
9 months ago
Repository files navigation
- README
- MIT license
Streamlit Email Sender ๐Ÿ’Œ๐Ÿš€
Demo of sending SMTP email using Streamlit app ๐ŸŽˆ
Getting Started ๐Ÿ› ๏ธ
1. Clone this repo:
2. Install the necessary packages:
3. Run Streamlit app
Using the App ๐ŸŽˆ
- Enter the sender's email
- Recipient's email
- Subject, and body
- Click on the "Send Email" button, and voila! Your email's on its way!
- You'll receive an email from [email protected]
Important Notes ๐Ÿ“Œ
If you're using Gmail and have two-step verification enabled, your regular password won't work. Instead, generate an app-specific password:
๐Ÿšถโ€โ™‚๏ธ Head over to your Google Account.
๐Ÿ–ฑ๏ธ On the left navigation panel, click on Security.
๐Ÿ” Under Signing in to Google, select App Passwords. You might need to sign in again.
๐Ÿ“ฑ At the bottom, choose the app and device you want the app password for, then select Generate.
๐ŸŽ‰ Use this app password in the Streamlit app.
Troubleshooting ๐Ÿš‘
If you encounter the error Failed to send email: ..., double-check your credentials and ensure you've followed the Important Notessection above.
Let's Connect! ๐ŸŒ
Loved the app or have some awesome suggestions? Raise an issue on this repo.
Releases
No releases published
Packages
No packages published
Languages
Python100.0%
streamlit-smtp-test/streamlit_app.py at main ยท tonykipkemboi/streamlit-smtp-test
https://github.com/tonykipkemboi/streamlit-smtp-test/blob/main/streamlit_app.py
```
"""
If you've two-step verification enabled, your regular password won't work. Instead, generate an app-specific password:
- Go to your Google Account.
- On the left navigation panel, click on "Security."
- Under "Signing in to Google," select "App Passwords." You might need to sign in again.
- At the bottom, choose the app and device you want the app password for, then select "Generate."
- Use this app password in your Streamlit app.
"""
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 `[email protected]`!**
""")
# Taking inputs
email_sender = st.text_input('From', '[email protected]', disabled=True)
email_receiver = st.text_input('To')
subject = st.text_input('Subject')
body = st.text_area('Body')
# Hide the password input
password = st.text_input('Password', type="password", disabled=True)
if st.button("Send Email"):
try:
msg = MIMEText(body)
msg['From'] = email_sender
msg['To'] = email_receiver
msg['Subject'] = subject
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login(st.secrets["email"]["gmail"], st.secrets["email"]["password"])
server.sendmail(email_sender, email_receiver, msg.as_string())
server.quit()
st.success('Email sent successfully! ๐Ÿš€')
except Exception as e:
st.error(f"Failed to send email: {e}")
```
STUUR EMAILS NAAR:
[email protected]
STTโ€ฆโ€ฆ!
07-04-2024
----->
https://huggingface.co/spaces/JBHF/STREAMLIT-Send-email-with-SMTP-and-Gmail-address
https://huggingface.co/spaces/JBHF/STREAMLIT-Send-email-with-SMTP-and-Gmail-address/tree/main