Django form – sending uploaded files as attachments over email

前端 未结 0 745
太阳男子
太阳男子 2021-02-07 23:28

Basically, the title says it all.

This is the code I\'m using:

documents = self.request.FILES.getlist(\'my_documents\')

mail = EmailMessage(
    \'Subject         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题