|
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]
|