Click here to Skip to main content
15,912,400 members

Comments by Member 13843763 (Top 3 by date)

Member 13843763 25-May-18 5:15am View    
give me the solution , not the meaning. I am able to send email with attachment but not able to send email without attachments.
Member 13843763 25-May-18 4:45am View    
So, this is the error
if request.files['attachment'].filename == "":
So, what error is in this line?
Member 13843763 25-May-18 4:45am View    
if request.files['attachment'].filename == "":
File "/usr/local/lib/python3.4/dist-packages/werkzeug/datastructures.py", line 431, in __getitem__
raise exceptions.BadRequestKeyError(key)
werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: KeyError: 'attachment'