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@example.com’, ‘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/rpc.py”, line 373, in call
return reply.result()
File “/home/michael/Documents/NextPart/Development_major/Learn-Nameko/env/lib/python3.7/site-packages/nameko/rpc.py”, 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.