I have used phpmailer successfully on many sites. I tried setting up a basic contact page using phpmailer on a php 5.2 website today. I cannot get it to work, I get the following error:
[SIZE=16px][FONT=Verdana]SMTP Error: Could not connect to SMTP host.[/FONT][/SIZE]
I have conformed that the mail server is correct: mail.cpowersgc.com
I logged in using the same username and password that I am using in my script
I’ve turned ssl on and off. changed the port to 587 and tired any other changes that I could think of.
Is there something different that needs to be done for phpmailer with php 5.2? I did download an updated version of phpmailer.php that says it works on php 5
I now it wasn’t like this before either. I didn’t even consider changing the host name because that always has worked fine. I posted support’s response here to save someone else the time of debugging the issue.