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
0
votes
0 answers

Flask-mail not working, not getting any specific error messages

I developed a blog-like app for my students where they have an option to submit their texts to the instructor for revision and feedback. On clicking the submit button, the app takes the text the student has written in the text box and sends it to me…
AnnieH
  • 35
  • 8
0
votes
1 answer

Flask-mail is trying to user localhost as mail server instead of configured SMTP server

I am trying to send email from my application using flask mail. I have my setting configured in init.py but flask-mail is trying to use 127.0.0.1 as the mail server with port 25 instead of the configuration I have provided At first I though it was a…
0
votes
1 answer

Flask-mail attachments error - 'dict' object has no attribute 'startswith'

The exception is raised when I try to attach a PNG image to my email. Here is the email method: def send_mail(recipient, subject, message, bcc_mail, attachment=None): mail = Mail(app) try: msg = Message(subject, …
Claudia
  • 59
  • 1
  • 7
0
votes
1 answer

TypeError: argument of type 'Mail' is not iterable

i am working on this email confirmation app using Flask. for this i am using flask_mail(obviously) but i am getting this error: TypeError: argument of type 'Mail' is not iterable @app.route('/email', methods=['GET', 'POST']) def send_mail(): …
vatsalay
  • 469
  • 1
  • 9
  • 21
0
votes
0 answers

TypeError: loads() got an unexpected keyword argument 'max'

i am using itsdangerous for generating token's for email confirmation and i want it to be expire after some time but i am getting this error: "TypeError: loads() got an unexpected keyword argument 'max_age' " Here's the…
vatsalay
  • 469
  • 1
  • 9
  • 21
0
votes
1 answer

Why is my Dockerized Flask app timing out on mail.send?

I'm trying to send mail from my Flask app that is served by Gunicorn & Nginx. Connection to Flask app times out when using mail.send() from container, works fine when running locally with werkzeug's development server. I tried changing gunicorn…
Okiic.
  • 117
  • 2
  • 13
0
votes
1 answer

Any other quality references for Flask login management out there?

Beginners find many quick construct templates and tips to get started with basic flask-python applications but it is very dry for complete ones. A complete app needs minimum login functionality and password management. Max Halford boilerplate is…
0
votes
0 answers

How do I debug a flask library specific error related to flask-mail

I am working on a website that sends an email upon request. In this email is a pdf attachment. When I go ahead and run the associated code to send the email, at the part where the pdf file is to be attached I recieve the error 'utf-8' codec can't…
0
votes
2 answers

How to setup flask mail with zoho mail

I have tried what I can think of but can't get the email to be sent from my application using flask-mail with Zoho mail. I've tried setting up an app password and I have tried the following examples of configuration using some of the information…
David 54321
  • 568
  • 1
  • 9
  • 23
0
votes
2 answers

Error occuring while sending test mail using flask-mail

I am basically building a flask web app which takes codeforces user id and returns user info i am trying to add flask-mail functionality into it but it displays the error: TypeError: cannot unpack non-iterable NoneType object The error is in the…
Hardik Mehta
  • 111
  • 7
0
votes
1 answer

flask-mail : ConnectionRefusedError when trying to send an email from flask server

I am doing a web application where the only users are adminstrators who may received mail from server once a week. Currently, I'm just trying to send mail from click command to test the module but I always get a 'ConnectionRefusedError [WinError…
Alain Bara
  • 19
  • 7
0
votes
1 answer

Flask-Mail - Any way to request Read Receipt?

I just spent a little time browsing similar questions on here, and it looks like some mail frameworks have a way of sending the proper signals to a mail client for the confirmation of read receipts. The project on which I am working must have…
Chockomonkey
  • 3,895
  • 7
  • 38
  • 55
0
votes
1 answer

localhost is not loading while trying to send mail using flask-mail

The localhost is not running and I am getting an OS:Error of 'No route to host' error when I run the flask app. I've tried adding this: app.run(host='0.0.0.0') but it does not work.Also I have tried changing the port from 5000 to 4996 and various…
0
votes
0 answers

I am using Flask-mail but i am getting this error : smtplib.SMTPRecipientsRefused

I am making this contact form using Flask mail but i am getting this Error: "smtplib.SMTPRecipientsRefused smtplib.SMTPRecipientsRefused: {'': (555, b'5.5.2 Syntax error. q18sm30917485pgv.9 - gsmtp' " for this Contact form i have app specific…
vatsalay
  • 469
  • 1
  • 9
  • 21
0
votes
0 answers

Flask Security - how to change default registration email message

Working with Flask-Security & able to send email when user registers but not sure how to change the default message. I thought it would be in core.py where I see 'SEND_REGISTER_EMAIL': True, 'EMAIL_SUBJECT_REGISTER': 'Welcome' but nothing in the…
JC23
  • 1,248
  • 4
  • 18
  • 28