PDA

View Full Version : Problem Connecting to SMTP server from PHP


tazz_ben
6-10-06, 04:08 AM
I use a tool called PHPMailer (http://phpmailer.sourceforge.net) in one of my applications that allows you send very complex email from PHP. Specifically the method I am using is SMTP. So to be clear it is not using in any way the mail() function.

On the old system this worked fine, but now that we have transfered it seems when it gets to part about connecting to the SMTP server, it fails. So it seems that for some reason:

A) PHP is not being allowed to open port 25.
B) The Mail Servers are not accepting connections from the webfarm

Either way, it is one of the many things that broke when I switched platforms, and at the moment the most pressing.

What I would really like is a list from the Powweb staff of all the things they are taking away from us when we switch, or they just don't have setup yet (and don't direct me to the transition site, it is rather inadequate). My site is vary large (including the demos for our products), and completely php and data driven. It is very difficult for me to be going around trying to find problems; when so much could be broken. It would be nice to be able to narrow the search.

Thanks!

Digitalroot
6-16-06, 03:42 PM
I have scripts that use SMTP as well. Someone please answer this.

HalfaBee
6-17-06, 11:14 PM
try changing to port 587

Digitalroot
6-29-06, 02:16 PM
Will someone answer this. Is there a problem w/ connecting to SMTP ports via php?

bramey
6-29-06, 02:51 PM
It has nothing to do with PHP. It has to do with the new servers' security policy. They've limited port usage to very specific ports and only a few--and sometimes not the traditional ones. Take Halfabee's suggestion and connect to your SMTP server via port 587--a port that Powweb has open for this purpose (I think).

zbasic
6-30-06, 12:25 AM
My PHP emails quit working after migration as well. Through experimentation, I found that the new SMTP server requires authentication for it to work at all and even then it seems to be hit and miss. I couldn't get authentication to work at all on port 587 and it was unreliable on port 25. I switched back to using the old SMPT server (mail03.powweb.com) and my emails are going out for now. I suspect that that server will eventually be taken offline so I hope to arrive at another solution before then.

HalfaBee
6-30-06, 01:28 AM
Did you try using mail.powweb.com instead of mail.yoursite.com?

bramey
6-30-06, 08:41 AM
Read this post, it should help.

http://forum.powweb.com/showpost.php?p=382343&postcount=8