Questions tagged [flask-mail]

The Flask-Mail extension provides a simple interface to set up SMTP with your Flask application and to send messages from your views and scripts.

The Flask-Mail extension provides a simple interface to set up SMTP with your Flask application and to send messages from your views and scripts.

249 questions
-1
votes
1 answer

Does Flask mail works on heroku

flask mail works perfectly on my local host but it is failing to work on heroku. Below is my setup code app.config['MAIL_SERVER'] = 'smtp.gmail.com' app.config['MAIL_PORT'] = 587 app.config['MAIL_USE_TLS'] = True app.config['MAIL_USERNAME'] =…
-1
votes
1 answer

How to configure Flask Mail to work with Postfix

I have an ubuntu 18.04lts server set up running my Flask app, and I need to be able to send users a confirmation email to let them create an account. I am using Flask-User to handle account authorization/authentication, and I know it uses Flask-Mail…
Entest89
  • 77
  • 5
-1
votes
1 answer

How to pass a variable with href url?

Below is my code to send email using flask in python. def sendPasswordResetLink(email, token): message = Message() message.subject = "Reset your password" message.sender = "********@gmail.com" message.recipients = email.split() …
Sushma
  • 45
  • 8
-1
votes
3 answers

Mail Not Sent In Gmail Account Using Flask-Mail

I am trying to add a functionality of resetting user password by sending email to a Gmail account. I have been following CoreySchafer YouTube Tutorial and Miguel Grinberg Tutorial to achieve this. The overall idea is user will be prompted with a…
-1
votes
1 answer

TypeError: __init__() got an unexpected keyword argument 'recepient'

I got an error while sending mail from my blog to recipients but it throws an error. @app.route('/contact', methods=['GET', 'POST']) def contact(): if request.method == 'POST': name = request.form.get ('name') email =…
-1
votes
2 answers

Flask Mail does not send email

I am trying to send a reset password email using flask-mail. The code executes without errors but I didn't receive any email. I tried the following: adding those line to the app.config in the init.py file: app.config['MAIL_SUPPRESS_SEND'] =…
-1
votes
1 answer

Flask_mail: OSError: [Errno 2] No such file or directory

OSError: [Errno 2] No such file or directory when i try send a mail by using flask_mail. Below is my code: app.config['MAIL_SERVER']='smtp.gmail.com' app.config['MAIL_PORT'] = 465 app.config['MAIL_USERNAME'] =…
-1
votes
1 answer

How do I resolve builtins.ConnectionRefusedError error in attempting to send email using flask-mail

I am making a simple WebApp using Flask framework in python. It will take user inputs for email and name from my website (www.anshulbansal.esy.es) and will check if email exists in database (here database is supposed as dictionary for now) then it…
-2
votes
1 answer

Flask AssertionError While Trying to "POST"

I am brand new to python as of about 3 days ago and I need to build a prototype python server for an iOS work project. I followed a tutorial for the initial build. When I perform a "POST" request, I get an error. Here is my full code, followed by…
Ungraceful
  • 67
  • 1
  • 9
1 2 3
16
17