PHPMailer debugging : Failed to connect to server
Hi, I'm really stuck on something.
I'm using PHPMailer to send emails. On my development machine I can
connect to the external mailserver and send a message. When I upload
to my Redhat staging server, I get the error message :
SMTP -> ERROR: Failed to connect to server: Permission denied (13)
I know the user/pass/mailserver are all working correctly because they
work correctly in development.
There must be some difference in php.ini or httpd.conf. Can you think
of something that could be blocking my outgoing connection?
Thanks,
Jeff
Code:
$mail = new mosPHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = true;
$mail->SMTPAuth = true;
$mail->Username = "XXXXXXXXXX";
$mail->Password = "XXXXXXXXXXX";
$mail->Host = "21x.xxx.xxx.xxxx";
$mail->Subject = "Test Email"; // $email_subject;
$mail->From = "cccc@cccccccc.com"; // $from_email_address;
$mail->AddAddress("cxxcxxxxcxc@gmail.com", "TEST YOU"); //
($to_email_address, $to_name);
$mail->Send();
|