1👍
You’re passing a (non-existent) URL to msg.attach_file
. You need to pass the location of the file on disk:
msg.attach_file(os.path.join(settings.MEDIA_ROOT, newImage.uImage.name))
Source:stackexchange.com
1👍
You’re passing a (non-existent) URL to msg.attach_file
. You need to pass the location of the file on disk:
msg.attach_file(os.path.join(settings.MEDIA_ROOT, newImage.uImage.name))