yagmail icon indicating copy to clipboard operation
yagmail copied to clipboard

Sending more than one email raise SMTPConnectError

Open tauhuang opened this issue 7 years ago • 0 comments

Version: 0.11.214 ENV: Python3.6

The code below will raise SMTPConnectError: (421, b'Too many connections')

for i in range(5):
    yag.send(to='***', subject='test', contents='Good afternoon')

The code below work well

for i in range(5):
    self.close()
    yag.send(to='***', subject='test', contents='Good afternoon')

Pull Request: https://github.com/kootenpv/yagmail/pull/117

tauhuang avatar Jul 05 '18 06:07 tauhuang