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(‘firstname.lastname@example.org’, ‘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
File “/home/michael/Documents/NextPart/Development_major/Learn-Nameko/env/lib/python3.7/site-packages/nameko/rpc.py”, line 331, in result
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.