Resolve correct path for attachment from settings.MEDIA_ROOT, fix infinite recusion on delivery failure.