@jimender2 I am starting the docker with: docker-compose up
I just tried implementing email integration and adding email attachment in CTFd/utils/email/smtp.y where I got this code(I added code between the two comments line): https://pastebin.com/RdpHUyx4
I have made sure the bash script is in the docker folder and it works to run it, and access the ovpn file in the /root folder after that. But after I register a user, there is no email sent or received. The email settings in the admin panel should be right with the correct server, email and port.
I have tried with both port 587(TLS) and 456(SSL).
I have confirmed that the email settings are correct because if I use the normal smtp.py code without my additions, and try to send an email from the admin panel in CTFd to a user, it works to recieve that email.
I have added this in docker-compose.yml:
But still I see no errors or something in the logs file after I try my new additions to smtp.py. So I don’t get any error or something so it’s difficult to debug…Do you have any thoughts what may be wrong or what I may be missing?