How to Send Emails with Flask Using Python

  Рет қаралды 25,131

Arpan Neupane

Arpan Neupane

Күн бұрын

Hey guys! Welcome back! In this video, I will be showing you guys how to send emails using Flask. We will be using Flask-Mail to send emails.
If you don't know about Flask or if this is your first time using it, Flask is a Python web framework that is used to create web applications. Flask also has an extension called Flask-Mail which can be used for sending emails with Flask. It provides an easy way to send email messages via a local or remote SMTP server.
Installation for Mac - pip3 install flask flask-mail
Installation for Windows - pip install flask flask-mail
Flask-Mail Docs: pythonhosted.o...
My Website: arpanneupane.com
My GitHub: github.com/arp...
My Programming Gear :
Keyboard: amzn.to/42vXkxh
Laptop: amzn.to/3CkAP3W
Laptop Stand: amzn.to/3X116Oi
Desk: amzn.to/43wmIEt
Monitor: amzn.to/42BAaFH
Monitor Arm: amzn.to/3NR0APS
Chair: amzn.to/42vvKAn
Desk Mat/Mousepad: amzn.to/43AhKqj
Microphone: amzn.to/45RuQ43
Headphones: amzn.to/445sf4R
#LearnToCode // #Flask // #FlaskMail // #Python

Пікірлер: 41
@igorbruno8373
@igorbruno8373 16 сағат бұрын
Thanks bro, it helped me with my college project.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 15 сағат бұрын
@@igorbruno8373 I'm glad it helped you bro 🙏
@rangabharath4253
@rangabharath4253 Жыл бұрын
Awesome. Short and upto the point 👌
@milesthomas3317
@milesthomas3317 3 жыл бұрын
Thanks, really helpful!
@RanjitSingh-rq1qx
@RanjitSingh-rq1qx Жыл бұрын
Helpful content ❤
@raghavsharma5704
@raghavsharma5704 5 ай бұрын
I am trying this and I cannot see the less secure apps access option in my google account section. How can I resolve this?
@ianbenjaminagala8039
@ianbenjaminagala8039 2 ай бұрын
google introduced an app password which is basically the password used while dealing with less secure apps. In your google account activate two step verification. Then search for app password. There you will have to input the name of the app and click. Afterwards a password is generated which you then use as your email password in your py app.
@yanezrodriguezcristianrafa4500
@yanezrodriguezcristianrafa4500 2 жыл бұрын
Owesome! Thanks im from Mexico CITY , exelent
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
¡Me alegro de que el video haya ayudado y gracias por mirar!
@ujjwalbhandarii
@ujjwalbhandarii 2 жыл бұрын
Thanks! 😁
@sudipsarkar1400
@sudipsarkar1400 Жыл бұрын
Hey I do same thing following vthis video and I got the message 'email sent' but I am not received any email 😢
@fasiulhaq2366
@fasiulhaq2366 4 ай бұрын
really helpful
@ArpanNeupaneProductions
@ArpanNeupaneProductions 3 ай бұрын
Glad you think so!
@ndanjikalokoni4575
@ndanjikalokoni4575 2 жыл бұрын
Google is going to stop providing this service on the 30th of this Month. Could you please make a video on an alternative option
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You can use a different email service.
@ndanjikalokoni4575
@ndanjikalokoni4575 2 жыл бұрын
@@ArpanNeupaneProductions could you please Gemme an example of another service, including the correct port configurations, I’ve been struggling with this for sometime now
@kevinblac2203
@kevinblac2203 2 жыл бұрын
Nice Nice
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Thanks
@snipershot3199
@snipershot3199 2 жыл бұрын
AttributeError: module 'smtplib' has no attribute 'SMTP_SSL' got this error .... please help
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Email me the code at arpanneupane19@gmail.com
@noussairabellouch2339
@noussairabellouch2339 2 жыл бұрын
same error
@snipershot3199
@snipershot3199 2 жыл бұрын
I solved it. @@noussairabellouch2339 downgrade flask-mail to version 0.9.0
@SphinxzOfficialYT
@SphinxzOfficialYT 2 жыл бұрын
I am having trouble with the google security there is no less secure.. something and it didn't work after that.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Yeah, Google has decided to remove that feature. You can try using another email service and it will work the same way.
@kwasek891
@kwasek891 10 ай бұрын
❤❤❤
@steamaccount2276
@steamaccount2276 2 жыл бұрын
Do you ever faced a timeout error? kindly tell me the solution if you know
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Hmm, I actually have never faced a Timeout Error. Can you share the error or share the link to your code so I can further assist you?
@steamaccount2276
@steamaccount2276 2 жыл бұрын
@@ArpanNeupaneProductions i will share it if get it again Because i del that project (which was almost ready for hosting) out of frustration.
@steamaccount2276
@steamaccount2276 2 жыл бұрын
@@ArpanNeupaneProductions i can tell you a bit about it. In the beginning it was working fine for around 5-6 or 7 days maybe but after that it started raising TimeoutError. I used it quite a lot in this time period ( sending un-necessary mails ) And one more thing is that i used some random emails to send mail to
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
@@steamaccount2276 Sure, take your time.
@arjunkandaswamy1532
@arjunkandaswamy1532 Жыл бұрын
from and to are same why
@VaeV1ct1s
@VaeV1ct1s 2 жыл бұрын
gmail dont works anymore
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
You can do the same thing with a different email service.
@VaeV1ct1s
@VaeV1ct1s 2 жыл бұрын
@@ArpanNeupaneProductions id like make my own
@chance_robinson
@chance_robinson 2 жыл бұрын
@@VaeV1ct1s gmail works if you use an app password and have two factor auth enabled, as well as enabling IMAP
@VaeV1ct1s
@VaeV1ct1s 2 жыл бұрын
@@chance_robinson did i missed it in video?
@vuckoport699
@vuckoport699 2 жыл бұрын
This no longer works since google removed this function.
@ArpanNeupaneProductions
@ArpanNeupaneProductions 2 жыл бұрын
Use a different email service.
Python Flask Authentication Tutorial - Learn Flask Login
29:35
Arpan Neupane
Рет қаралды 226 М.
Using Flask-Mail to Send Email Confirmation Links
18:09
Pretty Printed
Рет қаралды 38 М.
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 970 М.
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 19 МЛН
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 124 М.
build a meme Python website (Flask Tutorial for Beginners)
13:30
NetworkChuck
Рет қаралды 489 М.
How to Send Emails with Python [New Method 2023]
11:16
The PyCoach
Рет қаралды 190 М.
Make A Python Website As Fast As Possible!
22:21
Tech With Tim
Рет қаралды 689 М.
How to Use Flask-SQLAlchemy With Flask Blueprints
20:10
Pretty Printed
Рет қаралды 36 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Sending Email From Web Forms - Python and Flask #6
7:31
Codemy.com
Рет қаралды 27 М.
Simple Web App with Flask and Heroku - Python GUI for Beginners
25:07
Python Simplified
Рет қаралды 224 М.