Reply to Re: PHPMailer debugging (Failed to connect to server)

Your name:

Reply:


Posted by NC on 12/03/07 23:22

On Dec 3, 3:02 pm, jephperro <jeff.perrea...@gmail.com> wrote:
> Hi there,
>
> I have a problem using PHPMailer.
>
> On my local development machine, the script works fine and sends
> emails.
>
> On amy staging server, when I try to use PHPMailer to send()
> I see the error:
> SMTP -> ERROR: Failed to connect to server: Permission denied (13)
>
> Can anyone think of why my staging server is preventing my
> connection to the external mailserver?

It could be anything, really... Permission denied (13), if memory
serves, is generated by phpMailer if a call to fsockopen() fails when
trying to establish an SMTP connection. So something is not working
right SMTP-wise between your staging server and your mail server:

1. You staging server (or a router to which it is connected)
may be blocking all outgoing SMTP traffic.
2. Your mail server may be configured to allow SMTP connections
only from certain servers (and your staging server isn't one
of those).

Cheers,
NC

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация