Proton Bridge is not an SMTP interface, so this almost surely will not work. Libraries expect requests and responses to the services they speak to ensure they are working correctly.
You need an actual SMTP interface. Can’t recommend running one out on the public internet if you don’t know what you’re doing.
How do you imagine that working exactly?