Here is
smtp = smtplib.SMTP(server)
I want to make it more customizable with additional parameter of timeout and port.
I want to send email using SMTP python with the port that runs on any host (but don't want to use port 25 ) and I'm unable to set out timeout on it.