> resume = form.cleaned_data.get('resume')
>
> #Compose message
> email = EmailMessage()
> email.body = '...'
> email.subject = 'A new application has been submitted'
> email.from_email = 'Job application <
nor...@email.com>'
>
email.to = ['
em...@email.com',]
> email.attach_file(resume)
EmailMessage.attach_file() takes the path to a file on disk, not a
django.core.files.File subclass.
You may want to use EmailMessage.attach(), which takes a filename (as
listed in the email, not used for anything else), the contents of the
file as a string, and the content type of the file.
Both are documented here:
https://docs.djangoproject.com/en/1.6/topics/email/#the-emailmessage-class
Cheers
Tom