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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EVERNOTE :
|
2 |
+
https://www.evernote.com/shard/s313/nl/41973486/80906fa4-f829-e2eb-cffb-b910b9a128dc/
|
3 |
+
QUERIES FOR THE βNon-Toxic Glaze Advisorβ APP
|
4 |
+
|
5 |
+
EN
|
6 |
+
|
7 |
+
https://www.evernote.com/shard/s313/nl/41973486/b326b41d-1a5b-e5a9-1b87-6a852f08be59/
|
8 |
+
KOPIE - QUERIES FOR THE βNon-Toxic Glaze Advisorβ APP - Kopie
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
07-04-2024
|
13 |
+
06-04-2024
|
14 |
+
05-04-2024
|
15 |
+
04-04-2024
|
16 |
+
24-03-2024
|
17 |
+
23-03-2024
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
---
|
22 |
+
|
23 |
+
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
|
24 |
+
|
25 |
+
|
26 |
+
β¦
|
27 |
+
|
28 |
+
07-04-2024
|
29 |
+
|
30 |
+
STREAMLIT - Send email with SMTP and Gmail address - βοΈ Community Cloud - Streamlit
|
31 |
+
https://discuss.streamlit.io/t/send-email-with-smtp-and-gmail-address/48145
|
32 |
+
|
33 |
+
β¦
|
34 |
+
Developer Relations @Streamlit
|
35 |
+
1
|
36 |
+
Jul 2023
|
37 |
+
Can you share your requirements.txtfile?
|
38 |
+
It should be like this to work:
|
39 |
+
```
|
40 |
+
streamlit
|
41 |
+
sendgrid
|
42 |
+
Pillow
|
43 |
+
|
44 |
+
```
|
45 |
+
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.
|
46 |
+
Try generating a new email following the instructions from my previous post regardless of if you donβt have 2FA enabled.
|
47 |
+
β¦
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
|
52 |
+
tonykipkemboi/streamlit-smtp-test: Demo of sending SMTP email using Streamlit app
|
53 |
+
https://github.com/tonykipkemboi/streamlit-smtp-test
|
54 |
+
|
55 |
+
tonykipkemboi/streamlit-smtp-testPublic
|
56 |
+
Demo of sending SMTP email using Streamlit app
|
57 |
+
|
58 |
+
License
|
59 |
+
|
60 |
+
MIT license
|
61 |
+
2stars 1fork BranchesTagsActivity
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
|
66 |
+
- Code
|
67 |
+
- Issues1
|
68 |
+
- Pull requests
|
69 |
+
|
70 |
+
tonykipkemboi/streamlit-smtp-test
|
71 |
+
|
72 |
+
|
73 |
+
Folders and files
|
74 |
+
|
75 |
+
Name
|
76 |
+
|
77 |
+
Latest commit
|
78 |
+
|
79 |
+
|
80 |
+
https://github.com/tonykipkemboi
|
81 |
+
tonykipkemboi
|
82 |
+
|
83 |
+
5 months ago
|
84 |
+
|
85 |
+
History
|
86 |
+
|
87 |
+
|
88 |
+
.gitignore
|
89 |
+
|
90 |
+
9 months ago
|
91 |
+
LICENSE
|
92 |
+
|
93 |
+
9 months ago
|
94 |
+
README.md
|
95 |
+
|
96 |
+
5 months ago
|
97 |
+
requirements.txt
|
98 |
+
|
99 |
+
9 months ago
|
100 |
+
streamlit_app.py
|
101 |
+
|
102 |
+
9 months ago
|
103 |
+
|
104 |
+
Repository files navigation
|
105 |
+
|
106 |
+
- README
|
107 |
+
- MIT license
|
108 |
+
|
109 |
+
Streamlit Email Sender ππ
|
110 |
+
|
111 |
+
|
112 |
+
Demo of sending SMTP email using Streamlit app π
|
113 |
+
|
114 |
+
|
115 |
+
Getting Started π οΈ
|
116 |
+
|
117 |
+
|
118 |
+
1. Clone this repo:
|
119 |
+
2. Install the necessary packages:
|
120 |
+
3. Run Streamlit app
|
121 |
+
|
122 |
+
Using the App π
|
123 |
+
|
124 |
+
|
125 |
+
- Enter the sender's email
|
126 |
+
- Recipient's email
|
127 |
+
- Subject, and body
|
128 |
+
- Click on the "Send Email" button, and voila! Your email's on its way!
|
129 |
+
- You'll receive an email from [email protected]
|
130 |
+
|
131 |
+
Important Notes π
|
132 |
+
|
133 |
+
|
134 |
+
If you're using Gmail and have two-step verification enabled, your regular password won't work. Instead, generate an app-specific password:
|
135 |
+
|
136 |
+
πΆββοΈ Head over to your Google Account.
|
137 |
+
|
138 |
+
π±οΈ On the left navigation panel, click on Security.
|
139 |
+
|
140 |
+
π Under Signing in to Google, select App Passwords. You might need to sign in again.
|
141 |
+
|
142 |
+
π± At the bottom, choose the app and device you want the app password for, then select Generate.
|
143 |
+
|
144 |
+
π Use this app password in the Streamlit app.
|
145 |
+
|
146 |
+
|
147 |
+
Troubleshooting π
|
148 |
+
|
149 |
+
|
150 |
+
If you encounter the error Failed to send email: ..., double-check your credentials and ensure you've followed the Important Notessection above.
|
151 |
+
|
152 |
+
|
153 |
+
Let's Connect! π
|
154 |
+
|
155 |
+
|
156 |
+
Loved the app or have some awesome suggestions? Raise an issue on this repo.
|
157 |
+
|
158 |
+
Releases
|
159 |
+
|
160 |
+
No releases published
|
161 |
+
|
162 |
+
Packages
|
163 |
+
|
164 |
+
No packages published
|
165 |
+
|
166 |
+
Languages
|
167 |
+
|
168 |
+
Python100.0%
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
|
177 |
+
|
178 |
+
streamlit-smtp-test/streamlit_app.py at main Β· tonykipkemboi/streamlit-smtp-test
|
179 |
+
https://github.com/tonykipkemboi/streamlit-smtp-test/blob/main/streamlit_app.py
|
180 |
+
|
181 |
+
```
|
182 |
+
"""
|
183 |
+
If you've two-step verification enabled, your regular password won't work. Instead, generate an app-specific password:
|
184 |
+
|
185 |
+
- Go to your Google Account.
|
186 |
+
- On the left navigation panel, click on "Security."
|
187 |
+
- Under "Signing in to Google," select "App Passwords." You might need to sign in again.
|
188 |
+
- At the bottom, choose the app and device you want the app password for, then select "Generate."
|
189 |
+
- Use this app password in your Streamlit app.
|
190 |
+
|
191 |
+
"""
|
192 |
+
|
193 |
+
import streamlit as st
|
194 |
+
import smtplib
|
195 |
+
from email.mime.text import MIMEText
|
196 |
+
|
197 |
+
st.title('Send Streamlit SMTP Email π π')
|
198 |
+
|
199 |
+
st.markdown("""
|
200 |
+
**Enter your email, subject, and email body then hit send to receive an email from `[email protected]`!**
|
201 |
+
""")
|
202 |
+
|
203 |
+
# Taking inputs
|
204 |
+
email_sender = st.text_input('From', '[email protected]', disabled=True)
|
205 |
+
email_receiver = st.text_input('To')
|
206 |
+
subject = st.text_input('Subject')
|
207 |
+
body = st.text_area('Body')
|
208 |
+
|
209 |
+
# Hide the password input
|
210 |
+
password = st.text_input('Password', type="password", disabled=True)
|
211 |
+
|
212 |
+
if st.button("Send Email"):
|
213 |
+
try:
|
214 |
+
msg = MIMEText(body)
|
215 |
+
msg['From'] = email_sender
|
216 |
+
msg['To'] = email_receiver
|
217 |
+
msg['Subject'] = subject
|
218 |
+
|
219 |
+
server = smtplib.SMTP('smtp.gmail.com', 587)
|
220 |
+
server.starttls()
|
221 |
+
server.login(st.secrets["email"]["gmail"], st.secrets["email"]["password"])
|
222 |
+
server.sendmail(email_sender, email_receiver, msg.as_string())
|
223 |
+
server.quit()
|
224 |
+
|
225 |
+
st.success('Email sent successfully! π')
|
226 |
+
except Exception as e:
|
227 |
+
st.error(f"Failed to send email: {e}")
|
228 |
+
```
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
STUUR EMAILS NAAR:
|
233 | |
234 |
+
STTβ¦β¦!
|
235 |
+
|
236 |
+
|
237 |
+
07-04-2024
|
238 |
+
|
239 |
+
|
240 |
+
|
241 |
+
|
242 |
+
|
243 |
+
|
244 |
+
----->
|
245 |
+
|
246 |
+
|
247 |
+
https://huggingface.co/spaces/JBHF/STREAMLIT-Send-email-with-SMTP-and-Gmail-address
|
248 |
+
|
249 |
+
https://huggingface.co/spaces/JBHF/STREAMLIT-Send-email-with-SMTP-and-Gmail-address/tree/main
|