> - sendmail(sender_addr, to + bcc + cc, fp.getvalue()) > + alldests = to + bcc + cc > + alldests = [pycompat.strurl(d) for d in alldests] > + sendmail(sender_addr, alldests, fp.getvalue()) `encoding.strfromlocal()` to avoid unicode exception.