Help with sending emails like in various examples

Currently I’m experimenting with sending automated emails from a service like it is shown in the example of rochacbruno. But I always get this error message:
>>> n.rpc.mail.send(‘’, ‘test’, ‘test’)
Traceback (most recent call last):
File “”, line 1, in
File “/home/michael/Documents/NextPart/Development_major/Learn-Nameko/env/lib/python3.7/site-packages/nameko/”, line 373, in call
return reply.result()
File “/home/michael/Documents/NextPart/Development_major/Learn-Nameko/env/lib/python3.7/site-packages/nameko/”, line 331, in result
raise deserialize(error)
nameko.exceptions.RemoteError: TypeError GreenSSLSocket does not have a public constructor. Instances are returned by SSLContext.wrap_socket().

I tried to send the email with a request to Mailgun, the use of smtplib and ssl and also with yagmail.

I would be very happy about help and advice on how to solve or avoid this problem.

hi @michaelb20,

What version of Python are you using? Perhaps it’s related to a eventlet issue with python 3.7.

Hi @spyrosmarko,
many thanks for your answer. I also came across this issue and the change from 3.7 to 3.6 actually solved the problem.