File size: 5,214 Bytes
0332308 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
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 summittradingcard@gmail.com
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 `summittradingcard@gmail.com`!**
""")
# Taking inputs
email_sender = st.text_input('From', 'summittradingcard@gmail.com', 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:
scitechtalk@gmail.com
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 |