|
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 |