use email.utils.formataddr instead of '"%s" <%s>' to support double-quotes and backslashes correctly.
Attach a file by drag & drop or click to upload