0

I have a server that has Anaconda installed which comes with Flask. I am setting up a webapp where users in our company can upload a file for analysis and have the results e-mailed to them. This is all done through our internal network. However, I am not allowed to install Flask extensions (i.e., flask-mail, flask-wtf, etc) and all Google searches for "send mail flask" results in using "flask-mail".

How can I send emails (with a file attachment of the analysis results) using a flask server but without requiring additional extensions?

slaw
  • 6,591
  • 16
  • 56
  • 109
  • This will work fine http://stackoverflow.com/questions/3362600/how-to-send-email-attachments-with-python – Boris Aug 21 '15 at 04:16
  • If I'm running flask on 127.0.0.1:5000, can I also send mail via the same address and port while flask is running? – slaw Aug 21 '15 at 04:21
  • Looks like I'll need to run an smtpd server first too – slaw Aug 21 '15 at 11:42
  • You probably have an smtp server in your company (as you said you're setting up a webapp for you company). – Boris Aug 22 '15 at 01:07
  • Is it possible to send mail without hooking into the company's SMTP server? I've sent mail previously using Unix sendmail but I wanted to accomplish this exclusively with Python. – slaw Aug 24 '15 at 00:56

0 Answers0