Closed yvanz closed 7 years ago
I find the reason now. In python2(<2.7), I need indices in the format specs,so I change the code like this
msg['From'] = '"{0}" <{1}>'.format(self.useralias.replace(
'\\', '\\\\').replace('"', '\\"'), self.user)
Afterwards it worked? Maybe you could make a pull request, I would gladly accept it!
Yeah,it worked after I change the code.And I made a pull request just now
I want to send email with yagmail on python2.6,and this is my test demo code
But then I got a ValueError
I have tested on Python2.7 with the same code ,and it works well. So,what's the problem I got?And how to fix it?