How to verify you can connect to a SMTP server
How can I verify if I can connect to my email server? I’m having issues sending email using an SMTP server and I want to know if it is because of my code or due to an external issue. What is an alternative to verify connection settings to an SMTP Host?